Debian

以下包裹已被保留

  • May 20, 2017
The following packages have been kept back: click click-dev gir1.2-click-0.4 libclick-0.4-0 0

很明顯,所有這些軟體包要麼在某處被擱置,要麼處於某種衝突中,要麼會導致衝突。我不明白為什麼或在哪裡。它們既不是鎖定在 Synaptic 中,也不是由aptor阻止aptitude

我很好奇為什麼這些包裹被擱置了?我無法通過apt-get dist-upgrade, 或apt-get --with-new-pkgs upgrade.

我在 Linux Mint 17.3 上。

apt-cache policy click click-dev gir1.2-click-0.4 libclick-0.4-0:

click:
 Installed: 0.4.42+16.04.20151229-0~467~ubuntu14.04.1
 Candidate: 0.4.43+16.04.20160203-0~606~ubuntu14.04.1
 Version table:
    0.4.43+16.04.20160203-0~606~ubuntu14.04.1 0
       500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ trusty/main amd64 Packages
*** 0.4.42+16.04.20151229-0~467~ubuntu14.04.1 0
       100 /var/lib/dpkg/status
    0.4.21.1ubuntu0.2 0
       500 http://mirror.vutbr.cz/ubuntu/archive/ trusty-updates/main amd64 Packages
       500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
    0.4.21.1 0
       500 http://mirror.vutbr.cz/ubuntu/archive/ trusty/main amd64 Packages
click-dev:
 Installed: 0.4.42+16.04.20151229-0~467~ubuntu14.04.1
 Candidate: 0.4.43+16.04.20160203-0~606~ubuntu14.04.1
 Version table:
    0.4.43+16.04.20160203-0~606~ubuntu14.04.1 0
       500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ trusty/main amd64 Packages
*** 0.4.42+16.04.20151229-0~467~ubuntu14.04.1 0
       100 /var/lib/dpkg/status
    0.4.21.1ubuntu0.2 0
       500 http://mirror.vutbr.cz/ubuntu/archive/ trusty-updates/main amd64 Packages
       500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
    0.4.21.1 0
       500 http://mirror.vutbr.cz/ubuntu/archive/ trusty/main amd64 Packages
gir1.2-click-0.4:
 Installed: 0.4.42+16.04.20151229-0~467~ubuntu14.04.1
 Candidate: 0.4.43+16.04.20160203-0~606~ubuntu14.04.1
 Version table:
    0.4.43+16.04.20160203-0~606~ubuntu14.04.1 0
       500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ trusty/main amd64 Packages
*** 0.4.42+16.04.20151229-0~467~ubuntu14.04.1 0
       100 /var/lib/dpkg/status
    0.4.21.1ubuntu0.2 0
       500 http://mirror.vutbr.cz/ubuntu/archive/ trusty-updates/main amd64 Packages
       500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
    0.4.21.1 0
       500 http://mirror.vutbr.cz/ubuntu/archive/ trusty/main amd64 Packages
libclick-0.4-0:
 Installed: 0.4.42+16.04.20151229-0~467~ubuntu14.04.1
 Candidate: 0.4.43+16.04.20160203-0~606~ubuntu14.04.1
 Version table:
    0.4.43+16.04.20160203-0~606~ubuntu14.04.1 0
       500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ trusty/main amd64 Packages
*** 0.4.42+16.04.20151229-0~467~ubuntu14.04.1 0
       100 /var/lib/dpkg/status
    0.4.21.1ubuntu0.2 0
       500 http://mirror.vutbr.cz/ubuntu/archive/ trusty-updates/main amd64 Packages
       500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
    0.4.21.1 0
       500 http://mirror.vutbr.cz/ubuntu/archive/ trusty/main amd64 Packages

調試:

apt-get -o Debug::pkgProblemResolver=true install click click-dev gir1.2-click-0.4 libclick-0.4-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following extra packages will be installed:
 python3-click-package
Suggested packages:
 ubuntu-app-launch-tools upstart-app-launch-tools
Recommended packages:
 debootstrap
The following packages will be REMOVED:
 python3-click
The following NEW packages will be installed:
 python3-click-package
The following packages will be upgraded:
 click click-dev gir1.2-click-0.4 libclick-0.4-0
4 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 146 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] 

重現問題:

apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
 click click-dev gir1.2-click-0.4 libclick-0.4-0
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

修復後:

apt-get install click click-dev gir1.2-click-0.4 libclick-0.4-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
click-dev is already the newest version.
click-dev set to manually installed.
click is already the newest version.
libclick-0.4-0 is already the newest version.
libclick-0.4-0 set to manually installed.
gir1.2-click-0.4 is already the newest version.
gir1.2-click-0.4 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

根據海報,以下命令有效

apt-get -o Debug::pkgProblemResolver=true install click click-dev gir1.2-click-0.4 libclick-0.4-0

並給出結果

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following extra packages will be installed:
 python3-click-package
Suggested packages:
 ubuntu-app-launch-tools upstart-app-launch-tools
Recommended packages:
 debootstrap
The following packages will be REMOVED:
 python3-click
The following NEW packages will be installed:
 python3-click-package
The following packages will be upgraded:
 click click-dev gir1.2-click-0.4 libclick-0.4-0
4 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 146 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n]

因此,執行顯式apt-get install.

我讓發布者在沒有調試標誌的情況下執行它,看看它是否給出了相同的結果,但顯然他已經執行了調試版本。

引用自:https://unix.stackexchange.com/questions/268676