从18.10升级到19.04时遇到了相同的问题。就我而言,原因是我有一些标记为的软件包kept back
。在这种情况下,它们与MSSQL有关。
szymon@szymon-Lenovo-Z580:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libodbc1 unixodbc
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.
我只是删除了它们及其依赖项:
szymon@szymon-Lenovo-Z580:~$ sudo apt remove unixodbc libodbc1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
odbcinst odbcinst1debian2
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
freetds-bin libodbc1 msodbcsql17 mssql-tools unixodbc
然后,以下命令序列使我成功升级:
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo do-release-upgrade
编辑:后来我发现了迈克尔对类似问题的详细回答,这可能有助于实现相同的目标。
do-release-upgrade
。如果失败,请编辑您的问题以包括完整的终端输出。