Location>code7788 >text

Win10 installing gcc for linux

Popularity:555 ℃/2024-09-28 22:25:55
liunx change name change host name
sudo hostnamectl set-hostname <newhostname>   

source exchange website
direct source exchangesudo apt install build-essential
The ubuntu 20.04 LTS (focal) configuration is as follows
deb /ubuntu/ focal main restricted universe multiverse
deb-src /ubuntu/ focal main restricted universe multiverse

deb /ubuntu/ focal-security main restricted universe multiverse
deb-src /ubuntu/ focal-security main restricted universe multiverse

deb /ubuntu/ focal-updates main restricted universe multiverse
deb-src /ubuntu/ focal-updates main restricted universe multiverse

# deb /ubuntu/ focal-proposed main restricted universe multiverse
# deb-src /ubuntu/ focal-proposed main restricted universe multiverse

deb /ubuntu/ focal-backports main restricted universe multiverse
deb-src /ubuntu/ focal-backports main restricted universe multiverse

Replacement method
1. Backup

sudo cp /etc/apt/ /etc/apt/

2. Editing

Open the vim editor and comment out or delete all the deb files in the file, then just copy the domestic image given above.

vim /etc/apt/

3. Updates

sudo apt update
sudo apt upgrade
                            

cargo new proj && cd proj && cargo run