web-dev-qa-db-ja.com

私はプログラム/ aptアップグレードをインストールしようとしていますが、このグループのライブラリはそうすることを許可していません

できませんapt-get upgrade、ソフトウェアセンターでソフトウェアをインストールしようとしましたが、それらのライブラリには依存関係が必要なので、運はありません。それらを削除しようとしましたが、うまくいきませんでした。また、Sudo apt-get cleanSudo apt-get dist-upgradeSudo apt-get removeSudo dpkg --configure -a、およびSudo apt-get -f install

ソフトウェアセンター:

installArchives() failed: (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 206010 files and directories currently installed.)
Preparing to unpack .../libc6-dev-i386_2.19-0ubuntu6.6_AMD64.deb ...
Unpacking libc6-dev-i386 (2.19-0ubuntu6.6) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_AMD64.deb (--unpack):
 trying to overwrite '/usr/include/bits', which is also in package libc6-dev-AMD64 2.19-0ubuntu6.6
Errors were encountered while processing:
 /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_AMD64.deb
Error in function: 
dpkg: dependency problems prevent configuration of gcc-4.8-multilib:
 gcc-4.8-multilib depends on libc6-dev-i386 (>= 2.11); however:
  Package libc6-dev-i386 is not installed.

dpkg: error processing package gcc-4.8-multilib (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dev-x32:
 libc6-dev-x32 depends on libc6-dev-i386 (= 2.19-0ubuntu6.6); however:
  Package libc6-dev-i386 is not installed.

dpkg: error processing package libc6-dev-x32 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcc-multilib:
 gcc-multilib depends on gcc-4.8-multilib (>= 4.8.2-5~); however:
  Package gcc-4.8-multilib is not configured yet.

dpkg: error processing package gcc-multilib (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of g++-4.8-multilib:
 g++-4.8-multilib depends on gcc-4.8-multilib (= 4.8.2-19ubuntu1); however:
  Package gcc-4.8-multilib is not configured yet.

dpkg: error processing package g++-4.8-multilib (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of g++-multilib:
 g++-multilib depends on gcc-multilib (>= 4:4.8.2-1ubuntu6); however:
  Package gcc-multilib is not configured yet.
 g++-multilib depends on g++-4.8-multilib (>= 4.8.2-5~); however:
  Package g++-4.8-multilib is not configured yet.

dpkg: error processing package g++-multilib (--configure):
 dependency problems - leaving unconfigured

apt-get upgrade

keegan@keeganserver:~$ Sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 gcc-4.8-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not installed
 libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.19-0ubuntu6.6) but it is not installed
E: Unmet dependencies. Try using -f.

-f

keegan@keeganserver:~$ Sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  cpp-4.4 diffstat gcc-4.4-base intltool-debian libalgorithm-diff-Perl
  libalgorithm-diff-xs-Perl libalgorithm-merge-Perl libapt-pkg-Perl
  libarchive-Zip-Perl libautodie-Perl libclass-accessor-Perl libclone-Perl
  libdpkg-Perl libemail-valid-Perl libfile-fcntllock-Perl libio-pty-Perl
  libio-string-Perl libipc-run-Perl libipc-system-simple-Perl
  liblist-moreutils-Perl libnet-dns-Perl libnet-domain-tld-Perl libnet-ip-Perl
  libparse-debianchangelog-Perl libperlio-gzip-Perl libsub-identify-Perl
  libsub-name-Perl libtext-levenshtein-Perl libupstart1 patchutils t1utils
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libc6-dev-i386
The following NEW packages will be installed:
  libc6-dev-i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/1,148 kB of archives.
After this operation, 6,333 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 206010 files and directories currently installed.)
Preparing to unpack .../libc6-dev-i386_2.19-0ubuntu6.6_AMD64.deb ...
Unpacking libc6-dev-i386 (2.19-0ubuntu6.6) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_AMD64.deb (--unpack):
 trying to overwrite '/usr/include/bits', which is also in package libc6-dev-AMD64 2.19-0ubuntu6.6
Errors were encountered while processing:
 /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
2
Ma5ter

これを試して

キーボードのCtrl + Alt + Tを押してターミナルを開きます。開いたら、以下のコマンドを実行します:

最初に、rmコマンドで破損したファイルを削除します。

Sudo rm -fr  /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_AMD64.deb

今、あなたのsources.list

ここから新しいリストを生成します。

http://repogen.simplylinux.ch/

すべての行をコピーして、あなたのものではなくそれらを置き換えます(お気に入りのエディターを使用して、私はここでvimを使用しました)

Sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk
Sudo vim.tiny /etc/apt/sources.list

次の行を実行します。

Sudo apt-get  clean
Sudo apt-get update
Sudo apt-get -f install
1
scarface_90