web-dev-qa-db-ja.com

破損したパッケージシステムを修正できません

Ubuntu 12.04 LTSに(苦労して)Skypeをインストールした後、数か月前から修正できないパッケージの問題が発生しています。

この問題の原因を知るために最後の投稿をご覧ください。 buntu 12.04 LTS 64-bitにSkypeをインストール

システムアップデートをインストールしようとすると、パッケージシステムが破損していることを示すアップデートマネージャーが予期せず終了し、次のエラーがスローされます。

The following packages have unmet dependencies:

grub-efi-AMD64: Depends: grub2-common (= 1.99-21ubuntu3.9) but 1.99-21ubuntu3.10 is installed
                Depends: grub-efi-AMD64-bin (= 1.99-21ubuntu3.9) but 1.99-21ubuntu3.10 is installed

パッケージの潜在的な問題を修正するために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:
  linux-image-3.5.0-26-generic linux-headers-3.5.0-26
  linux-headers-3.5.0-26-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  grub-efi-AMD64
The following packages will be upgraded:
  grub-efi-AMD64
1 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
2 not fully installed or removed.
Need to get 39.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main grub-efi-AMD64 AMD64 1.99-21ubuntu3.10 [39.5 kB]
Fetched 39.5 kB in 0s (154 kB/s)        
dpkg: dependency problems prevent configuration of grub-efi-AMD64:
 grub-efi-AMD64 depends on grub2-common (= 1.99-21ubuntu3.9); however:
  Version of grub2-common on system is 1.99-21ubuntu3.10.
 grub-efi-AMD64 depends on grub-efi-AMD64-bin (= 1.99-21ubuntu3.9); however:
  Version of grub-efi-AMD64-bin on system is 1.99-21ubuntu3.10.
dpkg: error processing grub-efi-AMD64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-AMD64-signed:
 grub-efi-AMD64-signed depends on grub-efi-AMD64 (>= 1.99-21ubuntu3.5); however:
  Package grub-efi-AMD64 is not configured yet.
dpkg: error processing grub-efi-AMD64-signed (--configure):
 dependency problems - leaving unconfiguredNo apport report written because the error message indicates its a followup error from a previous failure.
                                                                     No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:
 grub-efi-AMD64
 grub-efi-AMD64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sudo dpkg --configure -aを実行すると、次の結果が得られます。

dpkg: dependency problems prevent configuration of grub-efi-AMD64:
 grub-efi-AMD64 depends on grub2-common (= 1.99-21ubuntu3.9); however:
  Version of grub2-common on system is 1.99-21ubuntu3.10.
 grub-efi-AMD64 depends on grub-efi-AMD64-bin (= 1.99-21ubuntu3.9); however:
  Version of grub-efi-AMD64-bin on system is 1.99-21ubuntu3.10.
dpkg: error processing grub-efi-AMD64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-AMD64-signed:
 grub-efi-AMD64-signed depends on grub-efi-AMD64 (>= 1.99-21ubuntu3.5); however:
  Package grub-efi-AMD64 is not configured yet.
dpkg: error processing grub-efi-AMD64-signed (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 grub-efi-AMD64
 grub-efi-AMD64-signed

私の理解では、根本原因はパッケージgrub-efi-AMD64およびgrub-efi-AMD64-signedの依存関係が満たされていないため、ここで説明していることを試しました PPAを追加した後、満たされていない依存関係を解決するにはどうすればよいですか? それでも問題は解決しません。

競合するパッケージを削除することで問題が解決するかどうかはわかりませんが、EFIブートがあり、GRUBでブートしているため、システムを台無しにするのではないかと心配しているため、まだ実行していません。同じ理由で、おそらく競合するパッケージが自動的に削除される可能性があるため、Sudo apt-get -u dist-upgradeを実行しようとしませんでした。

他の人が同様の経験をしたかどうか、そしてこれに対する可能な解決策を知りたいのですが。

追加情報と同様に、これはgedit /etc/apt/sources.listの出力です。

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release AMD64 (20130213)]/ dists/precise/main/binary-i386/

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release AMD64 (20130213)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release AMD64 (20130213)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

deb http://archive.ubuntu.com/ubuntu precise-security main restricted
deb http://archive.ubuntu.com/ubuntu precise-security universe
deb http://archive.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://archive.canonical.com/ precise partner
deb-src http://archive.canonical.com/ precise partner

gedit /etc/apt/sources.list.d/*(異なるファイル):

deb-src http://ppa.launchpad.net/cassou/emacs/ubuntu precise main

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main

deb http://ppa.launchpad.net/guilhem-fr/swftools/ubuntu precise main
deb-src http://ppa.launchpad.net/guilhem-fr/swftools/ubuntu precise main

deb-src http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu precise main

deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu precise main
deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu precise main

deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu precise main
deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu precise main

問題のあるパッケージgrub-efi-AMD64とgrub-efi-AMD64-signedをSynapticで削除することで、問題を解決しました。

その後、上記のパッケージを再度インストールしたように見えるすべての保留中のシステムアップデートをインストールして適用しました。

すべての更新プロセスが完了したら、システムを再起動しましたが、すべて正常です。

シンプルインストールシナプスパッケージマネージャーで、[ステータス](左)で壊れたパッケージをクリックします。それらのパッケージを選択して修正または再インストールします。

0
Kanthala Raghu