次のパッケージが拘束されました

次のパッケージが拘束されました
The following packages have been kept back: click click-dev gir1.2-click-0.4 libclick-0.4-0 0

しかし、

これらすべてのパッケージがどこかに残っているか、どんな種類の衝突があるか、または衝突を引き起こすことは明らかです。理由や場所を理解していません。彼らはシナプスにロックされていないか、またはによってaptブロックされませんaptitude

なぜこのようなパッケージを進めるのか疑問に思います。私はapt-get dist-upgradeこれをorで克服することはできません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.

ベストアンサー1

ポスターによると、次のコマンドが機能します。

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

私はポスターに同じ結果が出ていることを確認するためにデバッグフラグなしで実行してもらいましたが、明らかに彼はすでにデバッグバージョンを実行していました。

おすすめ記事