Linux包系列的知识(附:Ubuntu16.04升级到18.04的案例)

六月ゝ 毕业季﹏ 提交于 2020-01-10 03:53:43

原文转载:https://www.cnblogs.com/dunitian/p/9095641.html

dnt@MZY-PC:~$ sudo apt-get clean 
dnt@MZY-PC:~$ sudo apt-get autoclean 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
dnt@MZY-PC:~$ sudo apt-get update 
忽略:1 http://dl.google.com/linux/chrome/deb stable InRelease
命中:2 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease       
命中:3 http://dl.google.com/linux/chrome/deb stable Release                    
命中:4 http://mirrors.ustc.edu.cn/ubuntu xenial InRelease                      
命中:6 http://mirrors.ustc.edu.cn/ubuntu xenial-updates InRelease      
命中:7 http://mirrors.ustc.edu.cn/ubuntu xenial-security InRelease    
命中:8 http://packages.microsoft.com/repos/vscode stable InRelease
正在读取软件包列表... 完成                       
dnt@MZY-PC:~$ sudo apt-get upgrade 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在计算更新... 完成
下列软件包的版本将保持不变:
  cups-filters cups-filters-core-drivers gir1.2-javascriptcoregtk-4.0
  gir1.2-webkit2-4.0 google-chrome-stable libjavascriptcoregtk-4.0-18
  libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-37-gtk2 linux-generic-hwe-16.04
  linux-headers-generic-hwe-16.04 linux-image-generic-hwe-16.04
  linux-signed-generic-hwe-16.04 linux-signed-image-generic-hwe-16.04 qpdf
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 14 个软件包未被升级。
dnt@MZY-PC:~$ cat /etc/issue
Ubuntu 16.04.4 LTS \n \l

dnt@MZY-PC:~$ sudo apt-get dist-upgrade 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在计算更新... 完成
下列软件包是自动安装的并且现在不需要了:
  libappindicator1 libindicator7
使用'sudo apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
  amd64-microcode intel-microcode iucode-tool libqpdf21 libwebpdemux1 linux-headers-4.13.0-43 linux-headers-4.13.0-43-generic
  linux-image-4.13.0-43-generic linux-image-extra-4.13.0-43-generic linux-signed-image-4.13.0-43-generic
下列软件包将被升级:
  cups-filters cups-filters-core-drivers gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 google-chrome-stable libjavascriptcoregtk-4.0-18
  libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-37-gtk2 linux-generic-hwe-16.04 linux-headers-generic-hwe-16.04 linux-image-generic-hwe-16.04
  linux-signed-generic-hwe-16.04 linux-signed-image-generic-hwe-16.04 qpdf
升级了 14 个软件包,新安装了 10 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 143 MB 的归档。
解压缩后会消耗 300 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 libqpdf21 amd64 8.0.2-3~16.04.1 [315 kB]
获取:2 http://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 66.0.3359.181-1 [52.3 MB]
获取:3 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 cups-filters-core-drivers amd64 1.8.3-2ubuntu3.4 [128 kB]
获取:4 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 cups-filters amd64 1.8.3-2ubuntu3.4 [448 kB]

dnt@MZY-PC:~$ reboot

dnt@MZY-PC:~$ cat /etc/issue
Ubuntu 16.04.4 LTS \n \l

dnt@MZY-PC:~$ sudo update-manager -d
[sudo] dnt 的密码: 
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!