我正在尝试做
sudo apt-get upgrade exiftool
,输出是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libimage-exiftool-perl' instead of 'exiftool'
libimage-exiftool-perl is already the newest version (11.88-1).
Calculating upgrade... Done
The following packages have been kept back:
libgegl-0.4-0
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
我试过
sudo apt-get dist-upgrade
和 sudo apt-get upgrade
但是那个 1 没有升级根本没有升级。我该怎么办?
直到最近我也有类似的问题
Fetched 3,013 kB in 7s (415 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
php-symfony-console
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
我尝试升级导致问题的单个包,但这只是让我陷入了看似已损坏的包依赖项的兔子洞。
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-symfony-console : Depends: php-mbstring
E: Broken packages
所以我卸载然后重新安装了包含无法升级的包的“父包”。在我的例子中,它是整个 php7
sudo apt-get purge php7.*
sudo apt-get autoclean
sudo apt-get autoremove