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"なら正常に実行できた。

2013年11月21日木曜日

AsciiDocでのフィルターの置き場所

asciidocでフィルター「asciidoc-ditaa-filter」を置くのに、以下を参照した。

http://www.methods.co.nz/asciidoc/chunked/ch33.html












私が使っているUbuntuの場合、場所は「/etc/asciidoc/filters/」が正解だったようです。

2013年9月10日火曜日

Eclipseへの Graphical Editing Framework (GEF) のインストール方法

Eclipse Platform 3.7.2
[Help] ==> [Install New Software]
以下の画面が表示される。

URLを入力:http://download.eclipse.org/callisto/releases/

[Graphical Editing Framework]を選択する。



javac: invalid target release: 1.7 ... を解決する

http://openjdk.java.net/install/
。。。だめだった。javac -versionが1.6のまま

さらに
update-alternatives --config java

# ls /usr/bin/java*
/usr/bin/java   /usr/bin/javadoc  /usr/bin/javap
/usr/bin/javac  /usr/bin/javah    /usr/bin/javaws
すべてで行う。

で、一応解決できてたと思う。ご参考になれば幸いです。

2013年6月1日土曜日

[Ubuntu] aptitude update 実行時の "W:Failed to fetch ... File Not Found"への対応

結論から言いますと、私のケースの場合(Ubuntuは12.4)、
sudo rm -rf /etc/apt/sources.list.d/*.
で問題解決できました。

以下のサイトが参考になりました。
http://askubuntu.com/questions/232056/failed-to-download-repository-information-check-your-internet-connection

2013年5月31日金曜日

Fedoraの古いバージョンをダウンロードする

Fedoraの古いバージョンをダウンロードすることが必要になった。ダウンロードしようとしたが、ちょっと迷ってしまった。メモメモ。

まず以下にアクセス
http://fedoraproject.org/ja/get-fedora


画面の赤で囲った部分をクリック。




画面の赤で囲った部分をクリック。