18.04升级问题

18.04升级问题

所以我执行 sudo apt update,它更新说我需要升级 5 个软件包。所以我执行 sudo apt upgrade,它说,它一直说 0 个升级,0 个新安装,0 个要删除,5 个未升级。下面是我所做的,我一直得到这个

    sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  apt-xapian-index dmidecode gconf-service gconf-service-backend
  gconf2 gconf2-common gir1.2-gmenu-3.0 gir1.2-gudev-1.0
  laptop-detect libcurl3 libgconf-2-4 libgnome-keyring-common
  libgnome-keyring0 libnih-dbus1 libplymouth4 libpython-stdlib
  plymouth plymouth-theme-ubuntu-text python python-apt
  python-aptdaemon python-aptdaemon.gtk3widgets python-asn1crypto
  python-attr python-automat python-blinker python-bs4 python-cairo
  python-cffi-backend python-chardet python-click python-colorama
  python-constantly python-cryptography python-cups python-dbus
  python-debian python-defer python-dirspec python-enum34 python-gi
  python-gi-cairo python-html5lib python-httplib2 python-hyperlink
  python-idna python-incremental python-ipaddress python-jwt
  python-lxml python-minimal python-oauthlib python-openssl
  python-pam python-piston-mini-client python-pkg-resources
  python-pyasn1 python-pyasn1-modules python-serial
  python-service-identity python-six python-twisted-bin
  python-twisted-core python-twisted-web python-webencodings
  python-xapian python-xdg python-zope.interface python2.7
  python2.7-minimal python3-piston-mini-client python3-xapian
  software-center-aptdaemon-plugins
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  xserver-xorg-core xserver-xorg-input-evdev
  xserver-xorg-input-synaptics xserver-xorg-input-wacom
  xserver-xorg-video-intel
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

答案1

我认为你需要 sudo apt-get update sudo apt-get dist-upgrade sudo apt-get autoremove sudo apt-get autoclean

或者作为一行

sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove && sudo apt-get autoclean

相关内容