在 Lubuntu 18.04.2 LTS 中,每次我sudo apt-get update
在命令行运行时,都会有一行显示Hit:4 https://download.sublimetext.com apt/dev/ InRelease
。
shekhar@shekhar-desktop:~$ sudo apt-get update
Hit:1 https://download.sublimetext.com apt/dev/ InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:4 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 163 kB in 4s (43.0 kB/s)
Reading package lists... Done
我尝试安装 sublime-text 但后来删除了它,因为它需要许可证密钥。
现在,当我运行 sudo apt-get upgrade 时,结果如下:-
shekhar@shekhar-desktop:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
请帮忙。
答案1
删除 sublimeapt-get update
第一个是显示 sublime ppas apt-get update
,如果您希望摆脱它——您必须删除 ppa。
sudo rm /etc/apt/sources.list.d/sublime-text.list
假设你按照sublime 官方下载手册,那么上述命令足以删除 ppa。
核心have been kept back
由于内核是核心系统包,如果升级失败可能会严重损坏您的系统,因此不能仅通过 来完成此操作upgrade
,而应该发出dist-upgrade
升级此类包的命令。
sudo apt-get dist-upgrade
这将有效地升级内核包。