お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2015-06-29 22:16:19

hotohoto
メンバ
登録日: 2009-07-04

E: パッケージキャッシュを再構築できませんでした が出て修復できない

update ができなくなりました。

該当の ftp.heanet.ie が引っかかっているのはわかるのですが、これをどうやって削除するのかがわかりません。
sudo dpkg --configure -a
はやってみましたが、その結果がこれです。

コード:

me@pc145:~$ sudo aptitude update
[sudo] password for me: 
Ign http://dl.google.com stable InRelease
 
中略

Ign http://ppa.launchpad.net quantal/main Translation-ja
Ign http://ppa.launchpad.net quantal/main Translation-en
Fetched 167 kB in 51秒 (3,212 B/s)
W: http://ftp.heanet.ie/mirrors/www.getdeb.net/getdeb/ubuntu/dists/trusty-getdeb/apps/binary-i386/Packages を取得できませんでした: ハッシュサムが適合しません
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: パッケージキャッシュを再構築できませんでした

W: http://ftp.heanet.ie/mirrors/www.getdeb.net/getdeb/ubuntu/dists/trusty-getdeb/apps/binary-i386/Packages
をどこかの登録ファイルから削除すれば治るでしょうか?
もしそうならそのファイルはどれですか?


PC145:「Linuxbean base(Ubuntu14.04) LXDE 32bit」

オフライン

 

#2 2015-06-29 22:22:20

hotohoto
メンバ
登録日: 2009-07-04

Re: E: パッケージキャッシュを再構築できませんでした が出て修復できない

自己レス:
そういえば、 記事で 「screen より byobu のほうがいいよ 」という内容の記事「screen(byobu)って何ができるの?」でやられたようです。
ソフトウエアセンターが途中で止まってしまったところからトラブルが始まりました。

オフライン

 

#3 2015-06-29 22:30:07

hotohoto
メンバ
登録日: 2009-07-04

Re: E: パッケージキャッシュを再構築できませんでした が出て修復できない

そこで byobu をremove しました。
すると一応順調に削除できたようです。

コード:

me@pc145:~$ sudo aptitude remove byobu
以下のパッケージは『削除』されます:      
  byobu python3-newt{u} tmux{u} 
0 個のパッケージを更新、 0 個を新たにインストール、 3 個を削除予定、47 個が更新されていない。
0  バイトのアーカイブを取得する必要があります。 展開後に 1,318 k バイトのディスク領域が解放されます。
先に進みますか? [Y/n/?] y
(データベースを読み込んでいます ... 現在 219930 個のファイルとディレクトリがインストールされています。)
Removing byobu (5.77-0ubuntu1.2) ...
Removing python3-newt (0.52.15-2ubuntu5) ...
Removing tmux (1.8-5) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
                                         
me@pc145:~$ sudo aptitude update

ところが、 update してみるとやっぱり同じエラーが出ています。継続してご指南乞う

オフライン

 

#4 2015-06-30 04:49:44

hotohoto
メンバ
登録日: 2009-07-04

Re: E: パッケージキャッシュを再構築できませんでした が出て修復できない

自己解決しました。

コード:

W: http://ftp.heanet.ie/mirrors/www.getdeb.net/getdeb/ubuntu/dists/trusty-getdeb/apps/binary-i386/Packages
を取得できませんでした: ハッシュサムが適合しません
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: パッケージキャッシュを再構築できませんでした

me@pc145:~$ sudo gvim /etc/apt/
aiva@pc145:~$ sudo gvim /etc/apt/sources.list
[sudo] password for me:

コード:

--
前略
--
## GetDeb
##   deb http://ftp.heanet.ie/mirrors/www.getdeb.net/getdeb/ubuntu/ trusty-getdeb apps
##   deb http://ftp.heanet.ie/mirrors/www.getdeb.net/getdeb/ubuntu/ trusty-getdeb games
# deb-src http://ftp.heanet.ie/mirrors/www.getdeb.net/getdeb/ubuntu/ trusty-getdeb apps
# deb-src http://ftp.heanet.ie/mirrors/www.getdeb.net/getdeb/ubuntu/ trusty-getd
--
後略
--

##コメントアウトしました



コード:

me@pc145:~$ sudo aptitude update
Ign http://dl.google.com stable InRelease
Ign http://ftp.jaist.ac.jp trusty InRelease

中略

Ign http://ppa.launchpad.net quantal/main Translation-ja
Ign http://ppa.launchpad.net quantal/main Translation-en
Fetched 1,667 kB in 51秒 (32.6 kB/s)

現在の状態: 更新が 48 個 [+1]。
me@pc145:~$

これでできました。

要は
/etc/apt/source.list
を編集するということです。

これが最善かどうかわかりませんが、apt-<シリーズ>のPPA調整ソフトをつかうよりよっぽどシンプルかなと思います。

オフライン

 

Board footer

Powered by FluxBB