我最近使用命令行命令从 Ubuntu 18.04 升级到了 Ubuntu 18.10 sudo do-release-upgrade
,此后,每当我运行 时sudo apt upgrade
,我看到的都是以下内容:-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
bind9-host dnsutils evolution-data-server fwupdate libbind9-160 libebackend-1.2-10 libebook-1.2-19 libebook-contacts-1.2-2 libecal-1.2-19
libedata-book-1.2-25 libedataserver-1.2-23 libedataserverui-1.2-2 libfwup1 libirs160 libisc169 libisccc160 libisccfg160 liblwres160
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
我该如何解决这个问题?我想升级到 Ubuntu 19.04,但这妨碍了我。此外,运行时sudo apt update
我看到此警告:-
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7
编辑: -
我删除了重复项,现在它sudo apt update
显示:-
Reading package lists... Done
Building dependency tree
Reading state information... Done
18 packages can be upgraded. Run 'apt list --upgradable' to see them.
但做起来sudo apt upgrade
,还是一样。
编辑2:-
我找到了解决方案,显然,sudo apt full-upgrade
它起了作用。谢谢大家的帮助!
答案1
您的 sources.list 中有重复的条目
您应该在该文件 (/etc/apt/sources.list) 中检查它们
另一种方法是:
即将
系统设置>>软件和更新>>其他软件并删除每个重复的条目。