sh 更新Ubuntu apt-get

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 更新Ubuntu apt-get相关的知识,希望对你有一定的参考价值。

cat > /etc/apt/sources.list << EOF
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu xenial-proposed restricted main universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu xenial-proposed restricted main universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
EOF

sudo apt clean
sudo apt update
sudo apt dist-upgrade

以上是关于sh 更新Ubuntu apt-get的主要内容,如果未能解决你的问题,请参考以下文章

sh 使用apt-get在Ubuntu 14.04上安装Scala 2.11.7和SBT 0.13.9或使用apt-get安装任何Debian衍生产品

sh 系统更新(apt-get)

sh 使用apt-get将ansible更新到最新版本

Ubuntu apt-get 更新/查看软件

Ubuntu 16.04配置国内高速apt-get更新源

ubuntu采用apt-get安装软件出现依赖问题的解决方案