Skip to content

Files

Latest commit

Feb 19, 2023
2233f3c · Feb 19, 2023

History

History

302-apt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 19, 2023

Apt

本期版本 上期版本
Sun Jan 1 22:04:07 CST 2023 -

修改安装源

sudo cp /etc/apt/sources.list{,.default}

sudo sed -i "s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
sudo sed -i "s@http://.*security.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list

# sudo sed -i -r 's/([a-zA-Z-]+\.)?(archive|security)\.ubuntu\.com/mirrors.aliyun.com/g' /etc/apt/sources.list

Desktop

sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates openssh-server net-tools build-essential git

Command

  • apt-get update
  • apt-get install <name>
  • apt-cache search <name>
  • apt-cache policy <name>
  • apt-cache madison <name>

Ref