尝试使用自动删除

尝试使用自动删除

当删除未使用的内核(以便在 /boot 上腾出空间)时,我收到此消息:

The following packages were automatically installed and are no longer required:
  gnome-mplayer hardinfo libgda-5.0-4 libgda-5.0-common libgmlib1 libgmtk1
  libgmtk1-data libmusicbrainz3-6 libwxsqlite3-3.0-0 linux-headers-3.19.0-30
  linux-headers-3.19.0-30-generic lubuntu-default-session
  lubuntu-software-center lxappearance-obconf lxsession-default-apps mtpaint
  python-gudev python-pysqlite2 sylpheed-plugins transmission xpad
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 47 not to upgrade.

我不明白最后一行,当我按照建议使用 autoremove 命令时,我得到:

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

我该怎么办?

答案1

Ubuntu 上的 apt-get 始终需要 sudo。

您应该将此命令复制粘贴到终端中:

sudo apt-get 自动删除

相关内容