ubuntu16.04升级需要知道的事
来源:互联网 发布:大型网络手游推荐 编辑:程序博客网 时间:2024/06/08 04:04
1、你有一个快速且正确的源
/etc/apt/sources.list
# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricteddeb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial main restricteddeb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricteddeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial universedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates universedeb http://mirrors.aliyun.com/ubuntu/ xenial multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricteddeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial-security universedeb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
注意:里面的内容要统一。如果安装过程中提示和sources.list.d冲突,就删除其中一个的冲突行。
2、出现错误,不要怕,研究一下。
Ubuntu 16.04出现:Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi’
解决:
sudo pkill -KILL appstreamcliwget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.debsudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb
3、先update再upgrade
update 是同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包。
sudo apt-get updatesudo apt-get upgrade
done
阅读全文
0 0
- ubuntu16.04升级需要知道的事
- Ubuntu16.04 VirtualBox的卸载和升级
- 从Exchange 2007升级至Exchange 2010,你需要知道的13件事
- 升级ubuntu16.04后
- ubuntu16.04内核升级
- ubuntu16.04升级17.04
- 男人需要知道的事
- Jdbc需要知道的事
- Ubuntu16.04版本下mongodb数据库的升级
- 程序员需要知道的97件事
- 程序员需要知道的97件事
- 程序员需要知道的12件事
- CIO需要知道的6件事
- HTTP需要知道的那些事
- Hbase你需要知道的事
- ubuntu16.04 安装完系统需要做的事情
- JS需要知道的
- Ubuntu14.04升级到Ubuntu16.04
- 利用TPC-H为MYSQL生成数据
- 笔试整理 七
- 数据校验
- java之路径分隔符介绍
- 字符串的左旋右旋
- ubuntu16.04升级需要知道的事
- KinectFusion: Real-Time Dense Surface Mapping and Tracking
- JS流程控制
- Oracle之索引耗费性能
- Mysql学习之暂时关闭外键的方法
- 练习笔记
- epoll网路模型
- 《图解HTTP》下载地址及介绍
- 蓝桥杯 算法训练 最大最小公倍数