今日設定したRaspberry PiでRaspbianを実行しています。問題は、パッケージをインストールしようとするたびにエラーが発生することです。たとえば、sudo apt-get install samba は次のように表示されます。
The following packages have unmet dependencies:
libc6 : Depends: libgcc1 but it is not going to be installed
samba : Depends: samba-common (= 2:3.6.6-6+deb7u4) but it is not going to be installed
Depends: libwbclient0 (= 2:3.6.6-6+deb7u4) but it is not going to be installed
Depends: libacl1 (>= 2.2.51-8) but it is not going to be installed
Depends: libattr1 (>= 1:2.4.46-8) but it is not going to be installed
Depends: libcap2 (>= 2.10) but it is not going to be installed
Depends: libcomerr2 (>= 1.01) but it is not going to be installed
Depends: libcups2 (>= 1.4.0) but it is not going to be installed
Depends: libgcc1 (>= 1:4.4.0) but it is not going to be installed
Depends: libgssapi-krb5-2 (>= 1.10+dfsg~) but it is not going to be installed
(...)
Try 'apt-get -f install' with no packages (or specify a solution).
だから私はsudo apt-get -f installを実行してみましたが、結果は次のようになります。
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libgcc1
The following NEW packages will be installed:
libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed.
Need to get 0 B/54.2 kB of archives. Continue [Y/n]? y
Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, line 1.
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, chunk 1.
Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, line 1.
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, chunk 1.
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: regarding .../libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb containing libgcc1:armhf, pre-dependency problem: libgcc1 pre-depends on multiarch-support, multiarch-support is unpacked, but has never been configured.
dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb (--unpack): pre-dependency problem - not installing libgcc1:armhf
Errors were encountered while processing: /var/cache/apt/archives/libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb
E:Sub-process /usr/bin/dpkg returned an error code (1)
その後、これらの新しいエラーを修正する方法を見つけようとし、最終的に次のような結果が得られました。http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=48737
だから私は次の手順に従います。https://askubuntu.com/questions/55099/dpkg-error-parsing-file-var-lib-dpkg-available-near-line-0
他の人にとってはうまくいったようですが、それでも同じエラーが発生するため、パケット管理に問題があるようです。この問題をどのように解決できるかを知っている人はいますか?
ベストアンサー1
この回答ではhttps://askubuntu.com/a/485293
免責事項:これがパッケージ全体の設定にどのような影響を与えるか、それ以降のアップグレードに問題が発生するかどうかはわかりません。
マルチアーキテクチャサポートのインストール状態を手動で強制します。
nano /var/lib/dpkg/status
Package:で始まる行を見つけます。たとえば、次のようになります。
Package: multiarch-support
Status: install ok unpacked
unpacked
に変更installed
保存と終了
sudo apt-get install -f
これで依存関係を変更する必要があります。
sudo apt-get install git