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
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