2013年12月19日木曜日

Windows 7 でarp -d *(ワイルドカード)が指定できない

Windows 7で以下のエラーが発生する(コマンドプロンプトは管理者権限で起動)。

C:\Windows\system32>arp -d *
ARP エントリを削除できませんでした: パラメーターが間違っています。

XPのときはできていたのに。。。なんで?

The package index files are corrupted. No Filename: field for package ubuntu-keyring

以下のようなエラーに遭遇した。
# aptitude upgrade
...
E: The package index files are corrupted. No Filename: field for package ubuntu-keyring.
E: The package index files are corrupted. No Filename: field for package ubuntu-keyring.
E: Internal error: couldn't generate list of packages to download

rm -r /var/lib/apt/lists/partial
では解決しなかった。

なので、以下のURLをみて、
http://swinky-linuxblog.blogspot.jp/2008/10/apt-get-problem-package-index-files-are.html
元のフォルダまるごととっておくつもりで、以下を実行。
mv /var/lib/apt/lists /var/lib/apt/lists.org

で、エラーがでた。
# aptitude update
E: Could not open lock file /var/lib/apt/lists/lock - open (2: No such file or directory)
E: Couldn't lock list directory..are you root?

この場合、"aptitude update"ではだめみたいで、"apt-get update"なら正常に実行できた。