阿里云镜像源地址:
https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.53322f70TiLYZU
1.在终端中执行下列指令:
cat /etc/issue
2.gedit etc/apt/sources.list
3.根据ubuntu 版本替换源
4.sudo apt-get update
5.sudo apt-get upgrade
提醒:如果出现以下错误
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
解决方法1
1获取apt进程:
ps -A | grep apt
2.杀死进程
sudo kill -9 进程id
3.删除锁定文件包
链接地址:https://blog.csdn.net/jiangjiang_jian/article/details/80695548
解决方法2
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it?
2. 如何解决这种问题呢?
2.1 首先查看是否有apt-get这个程序在运行
ps aux|grep apt-get
2.2 如果发现存在这样的程序在运行那么就kill掉,否则执行2.3
2.3 直接删除锁文件
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock