web-dev-qa-db-ja.com

依存関係エラーを解決する必要がある:libc6:Breaks:locales(<2.19)

Makemkv ppaからプログラムをインストールしようとしたときに受け取ったエラーメッセージを回避する方法について、いくつかのアドバイスを使用できます。 -fコマンドを使用してインストールを実行しようとしましたが、次に何をしようとしているかを知るには、エラーメッセージが十分に明確ではありません。

私はあなたがこれで私を助けるために知る必要があることを知りませんので、私に知らせてください。 Lubuntu-Desktopが短時間インストールされたヘッドレス14.04 Ubuntuサーバーです。

USER@SYSTEM:~$ Sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  locales
The following packages will be upgraded:
  locales
1 upgraded, 0 newly installed, 0 to remove and 944 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3,954 kB of archives.
After this operation, 7,032 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 706151 files and directories currently installed.)
Preparing to unpack .../locales_2.19-18+deb8u2_all.deb ...
Unpacking locales (2.19-18+deb8u2) over (2.13+git20120306-12) ...
dpkg: error processing archive /var/cache/apt/archives/locales_2.19-18+deb8u2_all.deb (--unpack):
 trying to overwrite '/usr/sbin/validlocale', which is also in package libc-bin 2.19-0ubuntu6.6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/locales_2.19-18+deb8u2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

USER@SYSTEM:~$ Sudo apt-get autoremove 
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:
 libc6 : Breaks: locales (< 2.19)
E: Unmet dependencies. Try using -f.

USER@SYSTEM:~$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

USER@SYSTEM:~$ uname -r
3.13.0-66-generic

そして、インストールからの行:

USER@SYSTEM:~$ Sudo apt-get install makemkv-bin 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libavcodec54 libavutil52 libc-dev-bin libc6 libc6-dev libc6-i386 libgsm1
  libmp3lame0 libopenjpeg2 libopus0 liborc-0.4-0 libschroedinger-1.0-0
  libspeex1 libtheora0 libx264-142 libxvidcore4 locales makemkv-oss
Suggested packages:
  glibc-doc opus-tools speex
The following NEW packages will be installed:
  libavcodec54 libavutil52 libc6-i386 libgsm1 libmp3lame0 libopenjpeg2
  libopus0 liborc-0.4-0 libschroedinger-1.0-0 libspeex1 libtheora0 libx264-142
  libxvidcore4 makemkv-bin makemkv-oss
The following packages will be upgraded:
  libc-dev-bin libc6 libc6-dev locales
4 upgraded, 15 newly installed, 0 to remove and 944 not upgraded.
Need to get 21.3 MB of archives.
After this operation, 61.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe libavutil52 AMD64 6:9.18-0ubuntu0.14.04.1 [67.1 kB]
Get:2 http://ppa.launchpad.net/heyarje/makemkv-beta/ubuntu/ trusty/main makemkv-oss AMD64 1.9.9-1~trusty [1,175 kB]
Get:3 http://ftp.no.debian.org/debian/ stable/main locales all 2.19-18+deb8u2 [3,954 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libgsm1 AMD64 1.0.13-4 [27.1 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libopenjpeg2 AMD64 1.3+dfsg-4.7ubuntu1 [64.3 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe libavcodec54 AMD64 6:9.18-0ubuntu0.14.04.1 [2,349 kB]
Get:7 http://ftp.no.debian.org/debian/ stable/main libc6-dev AMD64 2.19-18+deb8u2 [2,002 kB]
Get:8 http://ppa.launchpad.net/heyarje/makemkv-beta/ubuntu/ trusty/main makemkv-bin AMD64 1.9.9-1~trusty [2,291 kB]
Get:9 http://ftp.no.debian.org/debian/ stable/main libc-dev-bin AMD64 2.19-18+deb8u2 [237 kB]
Get:10 http://ftp.no.debian.org/debian/ stable/main libc6 AMD64 2.19-18+deb8u2 [4,666 kB]
Get:11 http://ftp.no.debian.org/debian/ stable/main libmp3lame0 AMD64 3.99.5+repack1-7+deb8u1 [353 kB]
Get:12 http://ftp.no.debian.org/debian/ stable/main libopus0 AMD64 1.1-2 [156 kB]
Get:13 http://ftp.no.debian.org/debian/ stable/main liborc-0.4-0 AMD64 1:0.4.22-1 [141 kB]
Get:14 http://ftp.no.debian.org/debian/ stable/main libschroedinger-1.0-0 AMD64 1.0.11-2.1 [295 kB]
Get:15 http://ftp.no.debian.org/debian/ stable/main libspeex1 AMD64 1.2~rc1.2-1 [54.9 kB]
Get:16 http://ftp.no.debian.org/debian/ stable/main libtheora0 AMD64 1.1.1+dfsg.1-6 [171 kB]
Get:17 http://ftp.no.debian.org/debian/ stable/main libx264-142 AMD64 2:0.142.2431+gita5831aa-1+b2 [587 kB]
Get:18 http://ftp.no.debian.org/debian/ stable/main libxvidcore4 AMD64 2:1.3.3-1 [282 kB]
Get:19 http://ftp.no.debian.org/debian/ stable/main libc6-i386 AMD64 2.19-18+deb8u2 [2,378 kB]
Fetched 21.3 MB in 11s (1,902 kB/s)
*[GIT update removed]*
Preconfiguring packages ...
(Reading database ... 706150 files and directories currently installed.)
Preparing to unpack .../locales_2.19-18+deb8u2_all.deb ...
Unpacking locales (2.19-18+deb8u2) over (2.13+git20120306-12) ...
dpkg: error processing archive /var/cache/apt/archives/locales_2.19-18+deb8u2_all.deb (--unpack):
 trying to overwrite '/usr/sbin/validlocale', which is also in package libc-bin 2.19-0ubuntu6.6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libc6-dev_2.19-18+deb8u2_AMD64.deb ...
Unpacking libc6-dev:AMD64 (2.19-18+deb8u2) over (2.19-0ubuntu6.6) ...
Preparing to unpack .../libc-dev-bin_2.19-18+deb8u2_AMD64.deb ...
Unpacking libc-dev-bin (2.19-18+deb8u2) over (2.19-0ubuntu6.6) ...
dpkg: considering deconfiguration of locales, which would be broken by installation of libc6:AMD64 ...
dpkg: yes, will deconfigure locales (broken by libc6:AMD64)
Preparing to unpack .../libc6_2.19-18+deb8u2_AMD64.deb ...
De-configuring locales (2.13+git20120306-12) ...
Unpacking libc6:AMD64 (2.19-18+deb8u2) over (2.19-0ubuntu6.6) ...
Processing triggers for man-db (2.6.7.1-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/locales_2.19-18+deb8u2_all.deb
*[Git update removed]*
 create mode 100644 ld.so.nohwcap
E: Sub-process /usr/bin/dpkg returned an error code (1)

参考のため:

USER@SERVER:~$ apt-cache policy locales
locales:
  Installed: 2.13+git20120306-12
  Candidate: 2.19-18+deb8u2
  Version table:
     2.19-18+deb8u2 0
        500 http://ftp.no.debian.org/debian/ stable/main AMD64 Packages
     2.13+git20120306-12.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main AMD64 Packages
 *** 2.13+git20120306-12 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main AMD64 Packages
        100 /var/lib/dpkg/status
3
Apathetic

ログから、/etc/apt/sources.listにdebianリポジトリがあることが明らかです。 ftp.no.debian.org/etc/apt/sources.listがあるものをすべて削除し、Sudo apt-get clean && Sudo apt-get update && Sudo apt-get upgradeを実行します。

4
Ron

DebianとUbuntuのパッケージを混在させようとしています。互換性がないため機能しません。

パッケージソースからリポジトリhttp://ftp.no.debian.org/debian/を削除し、そこからインストールしたすべてのパッケージを削除し( 特定のリポジトリからすべてのパッケージを削除するにはどうすればよいですか? を参照)、Ubuntuリポジトリからインストールします。

データをバックアップし、Ubuntuを新規インストールする方が簡単な場合があります。

0
Florian Diesch