web-dev-qa-db-ja.com

apt-getエラー:サブプロセス/ usr / bin / dpkgがエラーコード(1)を返しました

私はapt-getインストールにエラーがありますそれはエラーです:

The following packages have unmet dependencies:
 gcc-4.8-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed
 libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.19-0ubuntu6.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

私は次のようないくつかのコマンドを試します:apt-get -f install apt-get clean

ソースリストを変更して、apt-getの更新を再作成します

$ Sudo apt-get install g++
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 going to be installed
 libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.19-0ubuntu6.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

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:
  libc6-dev-i386
The following NEW packages will be installed:
  libc6-dev-i386
0 upgraded, 1 newly installed, 0 to remove and 434 not upgraded.
3 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 ... 194963 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)
5
user3815068

解決策は次のとおりです。

rm /var/lib/dpkg/info/$nomdupaquet* -f

ありがとう:)

9
rapaelec

私が見つけることができる解決策はどれも私のために問題を解決しませんでした...自動削除に関係なく、まだ壊れたパック、-f install ...など。

少し遊んだ後、以下は私のためにそれを解決しました:

Sudo apt-get --purge remove libc6-dev-i386 libc6-dev-x32 gcc-5-multilib gcc-multilib

Sudo apt autoremove -f

Sudo apt-get -f install
2
David

terminalから次の手順を試してください。

 Sudo apt-get --purge remove libc6-dev-AMD64 

 Sudo apt-get -f install

 Sudo apt-get update

これで問題が解決することを願っています。

2
Basheer.O

これを試して。新しいターミナルを開いて貼り付けます

Sudo dpkg -i --force-overwrite  /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_AMD64.deb

そのタイプの後:

Sudo apt-get autoremove

最後にタイプ

Sudo apt-get update

あなたの問題が解決されることを願っています。

2
orvi

パッケージデータベースを再構成してみてください。パッケージのインストール中にデータベースが破損した可能性があります。 Sudo dpkg --configure -a

1
Aditya Pawaskar

libc6-dev-AMD64をインストールし、libc6-dev-i386に依存するパッケージをインストールしようとしていますが、これら2つは競合しています(両方とも/ usr/include/bits )。

私は、これらの両方を同時にインストールしたくないと思います。 apt-get remove libc6-dev-AMD64を使用して自分自身を良好な状態に戻してから、必要なパッケージのインストールを再試行します。

これらの2つのパッケージが両方とも同時にインストールされている場合に機能することを意図している場合は、それを許可するためにパッケージを修正する必要があるため、パッケージメンテナーにバグを報告してください。

0
Ewan Mellor

このコマンドでこの問題を修正できます:

Sudo apt-get remove --purge libreoffice-core libreoffice-common python3-uno libreoffice- *

タラート・パルウェス-インド

0
Talat Parwez