Sudo apt upgrade
レポートの実行
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libieee1284-3:i386
Use 'Sudo apt autoremove' to remove it.
The following packages have been kept back:
colord
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
何かが壊れていると思うようになった。このパッケージはlibsane1に依存しているようですが、インストールしようとすると次のエラーメッセージが表示されます。
The following packages have unmet dependencies:
libsane1 : Depends: libsane-common (= 1.0.27-1~experimental3ubuntu2) but 1.0.27+git20190324-xenial0 is to be installed
Recommends: sane-utils (>= 1.0.27-1~experimental3ubuntu2)
Sudo apt install libsane-common=1.0.27-1~experimental3ubuntu2
を使用して適切なバージョンを直接インストールしようとすると、
dpkg: error processing archive /var/cache/apt/archives/libsane1_1.0.27-1~experimental3ubuntu2_AMD64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libsane.so.1.0.27', which is also in package libsane:AMD64 1.0.27+git20190324-xenial0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Libsane-commonをアンインストールして再インストールすることも試みましたが、Sudo apt remove libsane-common --dry-run
が表示されます
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
colord-data libcolord-gtk1 libcolorhug2 libieee1284-3 libieee1284-3:i386 libnss-myhostname
Use 'Sudo apt autoremove' to remove them.
The following packages will be REMOVED:
colord gnome-control-center libsane libsane-common ubuntu-desktop
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
Remv ubuntu-desktop [1.417]
Remv gnome-control-center [1:3.28.2-0ubuntu0.18.04.2]
Remv colord [1.2.12-1ubuntu1]
Remv libsane [1.0.27+git20190324-xenial0]
Remv libsane-common [1.0.27+git20190324-xenial0]
奇妙な理由でubuntu-desktopとgnome-control-centerをアンインストールするので、これはかなり危険に思えます。インストール全体を壊すことなくこれを修正できる方法はありますか?
編集:コマンドSudo apt autoremove
およびSudo apt clean
はエラーなしで実行されました。 Sudo apt install colord
を実行するとエラーが発生する
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
colord : Depends: libsane1 (>= 1.0.24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
私は最終的に信仰を飛躍させ、実行することで問題を修正しました
Sudo dpkg --purge --force-depends libsane libsane-common
コアUbuntuパッケージをアンインストールせずに、問題のあるパッケージを強制的に削除し、次に
Sudo apt --fix-broken install
私のためにすべてを修正しました。