破損したパッケージの問題

破損したパッケージの問題

マイオペレーティングシステム:Linux Mint 17.1(x64)+ Cinnamon

私のLinuxでwmaファイルを再生しようとしていますが、今はどのビデオも再生できないため、問題が発生しました。私が試したこと:

  • ~/.gstreamer-1.0フォルダを削除
  • 実行中sudo /usr/share/doc/libdvdread4/install-css.sh(これによりシステムが破損している可能性があります)
  • apt-getを使っていくつかのライブラリをインストールしてみてください(たとえば、libavcodecという名前のライブラリ、他のライブラリもあります)

今mplayerを実行しようとすると、次のエラーが発生します。

> mplayer
mplayer: error while loading shared libraries: libavcodec.so.54: cannot open shared object file: No such file or directory

他のプレイヤー(vlc)も機能しません。だからシステムアップデートを試しました。sudo apt-get updateいくつかのエラーが発生します。

(...)
Err http://ppa.launchpad.net trusty/main Sources
  404  Not Found
Get:21 http://packages.linuxmint.com rebecca/upstream i386 Packages [30,0 kB]
Err http://ppa.launchpad.net trusty/main amd64 Packages
  404  Not Found
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Err http://ppa.launchpad.net trusty/main i386 Packages
  404  Not Found
(...)
W: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/dists/trusty/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

sudo apt-get upgradeまったく役に立ちません:

Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 audacity : Depends: libavcodec54 (>= 6:9.1-1) but it is not installed or
                     libavcodec-extra-54 (>= 6:9.13) but it is not installed
 ffmpeg : Depends: libavcodec54 (>= 7:1.2.5~) but it is not installed or
                   libavcodec-extra-54 (>= 7:1.2.5~) but it is not installed
 gstreamer1.0-libav : Depends: libavcodec54 (>= 6:9.1-1) but it is not installed or
                               libavcodec-extra-54 (>= 6:9.13) but it is not installed
 libavdevice53 : Depends: libavcodec54 (>= 7:1.2.5~) but it is not installed or
                          libavcodec-extra-54 (>= 7:1.2.5~) but it is not installed
 libavfilter3 : Depends: libavcodec54 (>= 7:1.2.5~) but it is not installed or
                         libavcodec-extra-54 (>= 7:1.2.5~) but it is not installed
 libavformat54 : Depends: libavcodec54 (>= 7:1.2.5~) but it is not installed or
                          libavcodec-extra-54 (>= 7:1.2.5~) but it is not installed
 libchromaprint0 : Depends: libavcodec54 (>= 6:9.1-1) but it is not installed or
                            libavcodec-extra-54 (>= 6:9.10) but it is not installed
 libopencv-highgui2.4 : Depends: libavcodec54 (>= 6:9.1-1) but it is not installed or
                                 libavcodec-extra-54 (>= 6:9.10) but it is not installed
 mencoder : Depends: libavcodec54 (>= 6:9.1-1) but it is not installed or
                     libavcodec-extra-54 (>= 6:9.11) but it is not installed
 mplayer : Depends: libavcodec54 (>= 6:9.1-1) but it is not installed or
                    libavcodec-extra-54 (>= 6:9.11) but it is not installed
 vlc-nox : Depends: libavcodec54 (>= 6:9.1-1) but it is not installed or
                    libavcodec-extra-54 (>= 6:9.18) but it is not installed
E: Unmet dependencies. Try using -f.

それから試しました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:
folder-color-switcher gir1.2-nemo-3.0 nemo-emblems
nemo-folder-color-switcher python-nemo python-psutil
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libavcodec54
The following NEW packages will be installed:
libavcodec54
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 2715 kB of archives.
After this operation, 7309 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
WARNING: The following packages cannot be authenticated!
libavcodec54
Install these packages without verification? [y/N] y
Err http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/ trusty/main libavcodec54 amd64 7:1.2.6-1~trusty1
404  Not Found
E: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/pool/main/f/ffmpeg/libavcodec54_1.2.6-1~trusty1_amd64.deb  404  Not Found

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

その後、実行しましたが、sudo apt-get update --fix-missing同様のエラーが発生しましたsudo apt-get update
また、シナプティックパッケージマネージャを試してみましたが、起動時に「システムに11個の破損したパッケージがあります!...」というメッセージが表示されました。試してみましたEdit => Fix Broken Packagesが、何も起こらないようです(エラーも発生しませんでした)。その後、「壊れた依存フィルタ」を選択し、すべてのパッケージを再インストールとしてマークし、数画面後にエラーが発生しました。

W: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/pool/main/f/ffmpeg/libavcodec54_1.2.6-1~trusty1_amd64.deb
  404  Not Found


W: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/pool/main/f/ffmpeg/ffmpeg_1.2.6-1~trusty1_amd64.deb
  404  Not Found


W: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/pool/main/f/ffmpeg/libavdevice53_1.2.6-1~trusty1_amd64.deb
  404  Not Found


W: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/pool/main/f/ffmpeg/libavfilter3_1.2.6-1~trusty1_amd64.deb
  404  Not Found


W: Failed to fetch http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/pool/main/f/ffmpeg/libavformat54_1.2.6-1~trusty1_amd64.deb
  404  Not Found

それでは、私が何を壊したのか、それを修正する方法を知っている人はいますか?ありがとうございます。

ベストアンサー1

これが私が直した方法です。

  • 「ソフトウェアソース」を開く
  • [PPA]タブで、名前に「ffmpeg」を含むエントリを検索してすべて削除します。
  • その後、端末で次のコマンドを実行します(システム全体を更新/クリーンアップします。ディストリビューションをアップグレードしたくない場合は、セクションを含む行をdist-upgrade省略できます)。

    sudo apt-get -f install
    sudo apt-get update
    sudo apt-get upgrade
    # sudo apt-get dist-upgrade
    sudo apt-get autoremove
    sudo apt-get autoclean
    sudo apt-get clean
    
  • オプションで、mplayerおよび/またはvlcをインストールしてビデオ/オーディオファイルを再生できます。

    sudo apt-get install mplayer
    sudo apt-get install vlc
    

すべてが再び正常に戻った。

おすすめ記事