2017-05-29 10 views
0

私がUbuntuで実行するコマンドはどれも、というEのメッセージを送ります:Unmet dependencies。パッケージなしで 'apt-get -f install'を試してください(または解決策を指定してください)。 Ubuntu 16.04でapt-get -f installコマンドを実行しようとすると、以下のエラーが表示されます。問題処理中にエラーが発生しました:/var/cache/apt/archives/libgtk2.0-0_2.24.30-1ubuntu1_i386.deb

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: 
    bridge-utils containerd gir1.2-cogl-1.0 libcaca-dev libcairo-script-interpreter2 libdmx-dev libdmx1 libedata-cal-1.2-28 libepoxy-dev 
    libfontconfig1-dev libfontenc-dev libfreetype6-dev libfribidi-dev libfs-dev libfs6 libgeocode-glib0 libglu1-mesa-dev libgmp-dev 
    libgmpxx4ldbl libgtksourceview2.0-common libgweather-common libharfbuzz-gobject0 libice-dev libilmbase12 libjpeg-turbo8-dev libopenexr22 
    libpciaccess-dev libpng12-dev libsdl1.2debian libslang2-dev libsm-dev libvte-common libxaw7-dev libxfont-dev libxkbfile-dev libxml2-dev 
    libxmu-dev libxmu-headers libxmuu-dev libxpm-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86dga-dev 
    linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-67 
    linux-headers-4.4.0-67-generic linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic linux-headers-4.4.0-71 linux-headers-4.4.0-71-generic 
    linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic 
    linux-image-4.4.0-67-generic linux-image-4.4.0-70-generic linux-image-4.4.0-71-generic linux-image-4.4.0-72-generic 
    linux-image-extra-4.4.0-64-generic linux-image-extra-4.4.0-66-generic linux-image-extra-4.4.0-67-generic 
    linux-image-extra-4.4.0-70-generic linux-image-extra-4.4.0-71-generic linux-image-extra-4.4.0-72-generic mir-client-platform-mesa-dev 
    nettle-dev par2 python-cairo python-gobject-2 runc ubuntu-fan x11proto-bigreqs-dev x11proto-dmx-dev x11proto-dri3-dev x11proto-fonts-dev 
    x11proto-present-dev x11proto-record-dev x11proto-resource-dev x11proto-scrnsaver-dev x11proto-video-dev x11proto-xcmisc-dev 
    x11proto-xf86bigfont-dev x11proto-xf86dga-dev x11proto-xf86dri-dev 
Use 'sudo apt autoremove' to remove them. 
The following additional packages will be installed: 
    libgtk2.0-0:i386 libharfbuzz-dev:i386 libharfbuzz-gobject0:i386 libharfbuzz-icu0:i386 libicu55:i386 libxcomposite-dev:i386 libxdamage-dev 
    libxdamage-dev:i386 libxfixes-dev:i386 libxft-dev:i386 
Suggested packages: 
    librsvg2-common:i386 gvfs:i386 
The following packages will be REMOVED: 
    libharfbuzz-dev libxft-dev 
The following NEW packages will be installed: 
    libharfbuzz-dev:i386 libharfbuzz-gobject0:i386 libharfbuzz-icu0:i386 libicu55:i386 libxdamage-dev libxfixes-dev:i386 libxft-dev:i386 
The following packages will be upgraded: 
    libgtk2.0-0:i386 libxcomposite-dev:i386 libxdamage-dev:i386 
3 upgraded, 7 newly installed, 2 to remove and 44 not upgraded. 
46 not fully installed or removed. 
Need to get 0 B/9,961 kB of archives. 
After this operation, 31.1 MB of additional disk space will be used. 
Do you want to continue? [Y/n] Y 
(Reading database ... 450976 files and directories currently installed.) 
Preparing to unpack .../libgtk2.0-0_2.24.30-1ubuntu1_i386.deb ... 
Unpacking libgtk2.0-0:i386 (2.24.30-1ubuntu1) over (2.24.10-0ubuntu6) ... 
dpkg: error processing archive /var/cache/apt/archives/libgtk2.0-0_2.24.30-1ubuntu1_i386.deb (--unpack): 
trying to overwrite shared '/usr/share/doc/libgtk2.0-0/copyright', which is different from other instances of package libgtk2.0-0:i386 
Processing triggers for libc-bin (2.23-0ubuntu7) ... 
Errors were encountered while processing: 
/var/cache/apt/archives/libgtk2.0-0_2.24.30-1ubuntu1_i386.deb 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

答えて

0

実行sudo apt autoremove && sudo apt autocleanし、再度sudo apt -f installの下に解決することをお勧めしてください。

これが機能しない場合は、sudo rm -v /var/cache/apt/archives/libgtk2.0-0_2.24.30-1ubuntu1_i386.debで手動でファイルを削除してみてください。

+0

マニュアルrm作品 – JosephCenk

+0

@JosephCenkうれしいです:)将来の読者が役立つように答えとして受け入れることを検討してください。 –

関連する問題