PR

apt-get の /etc/apt/sources.list が嫌いだ…

LinkStation のdebian化によって久々にapt-getを使う事になった。

Freelink の Debian

SSHでログインすると Debian 3.1 が動作しているらしい。そしてこれを sarge というらしい。分かりにくい。kernelは2.4系。

FreeLink @ Debian GNU/Linux 3.1 %h
powered by http://www.linkstationwiki.net/
Have a lot of fun!

スポンサードリンク

何をするにも古いぞと言われる

apt-get install -t etch linux-image-2.6 しなさいと言われるけれど、何をするにもエラーばかり吐く。

あらゆるsources.listを試すがエラーばかり

ようやくたどり着いたのが、以下。エラーになるのはリストが移動したらしい。古いからね・・・。

取り敢えずDebian 4.x, etch, kernel 2.6 にする。

root@LINKSTATION:~# vi /etc/apt/sources.list
deb     http://archive.debian.org/debian/     etch main contrib non-free
deb-src http://archive.debian.org/debian/     etch main contrib non-free

確認

root@LINKSTATION:~# aptitude update

ちなみに

root@LINKSTATION:~# aptitude install apt-spy
root@LINKSTATION:~# apt-spy -s jp -d sarge

したら、/etc/apt/sources.list がきれいに吹っ飛んでた。Bas error とかなにかそんなエラーだった気がする。

yum install fastestmirror と同等の事をするだけでこれほど苦戦するとは・・・。

再起動したらエラー

いろいろ試したせいもあって何処に原因があるのかわからない。エラーは次のとおり:

Reading package lists... Done
Building dependency tree... Done
gcc is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
cpp: Depends: cpp-4.1 (>= 4.1.1-2) but it is not going to be installed
gcc-4.1: Depends: cpp-4.1 (= 4.1.1-21) but it is not going to be installed
pppoeconf: Depends: modconf but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

解決策は以下のとおり:

# aptitude install build-essential

※質問には全てデフォルトで回答した

dist-upgrade で 4.x になってない・・・。kernel も 2.4

Linux LINKSTATION 2.4.20_mipsel_linkstation #3 Thu Apr 20 14:38:55 JST 2006 mips

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
FreeLink @ Debian GNU/Linux 3.1 %h
powered by http://www.linkstationwiki.net/
Have a lot of fun!

これでもダメなのか

root@LINKSTATION:~# apt-get install -t etch linux-image-2.6
Reading package lists... Done
Building dependency tree... Done
Package linux-image-2.6 is a virtual package provided by:
linux-image-2.6.18-6-sb1a-bcm91480b 2.6.18.dfsg.1-26etch2
linux-image-2.6.18-6-sb1-bcm91250a 2.6.18.dfsg.1-26etch2
linux-image-2.6.18-6-r5k-cobalt 2.6.18.dfsg.1-26etch2
linux-image-2.6.18-6-r4k-kn04 2.6.18.dfsg.1-26etch2
linux-image-2.6.18-6-r3k-kn02 2.6.18.dfsg.1-26etch2
linux-image-2.6.18-6-qemu 2.6.18.dfsg.1-26etch2
linux-image-2.6.24-etchnhalf.1-sb1a-bcm91480b 2.6.24-6~etchnhalf.9etch3
linux-image-2.6.24-etchnhalf.1-sb1-bcm91250a 2.6.24-6~etchnhalf.9etch3
linux-image-2.6.24-etchnhalf.1-r5k-cobalt 2.6.24-6~etchnhalf.9etch3
linux-image-2.6.24-etchnhalf.1-5kc-malta 2.6.24-6~etchnhalf.9etch3
linux-image-2.6.24-etchnhalf.1-4kc-malta 2.6.24-6~etchnhalf.9etch3
You should explicitly select one to install.
E: Package linux-image-2.6 has no installation candidate
root@LINKSTATION:~# apt-get install -t etch linux-image-2.6.24-etchnhalf.1-r5k-cobalt
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
module-init-tools
Suggested packages:
linux-doc-2.6.24
The following NEW packages will be installed:
linux-image-2.6.24-etchnhalf.1-r5k-cobalt module-init-tools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.4MB of archives.
After unpacking 39.5MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.debian.org etch/main module-init-tools 3.3-pre4-2 [87.6kB]
Get:2 http://archive.debian.org etch/main linux-image-2.6.24-etchnhalf.1-r5k-cobalt 2.6.24-6~etchnhalf.9etch3 [13.3MB]
Fetched 13.4MB in 1m21s (165kB/s)
Preconfiguring packages ...
Selecting previously deselected package module-init-tools.
(Reading database ... 14681 files and directories currently installed.)
Unpacking module-init-tools (from .../module-init-tools_3.3-pre4-2_mipsel.deb) ...
Selecting previously deselected package linux-image-2.6.24-etchnhalf.1-r5k-cobalt.
Unpacking linux-image-2.6.24-etchnhalf.1-r5k-cobalt (from .../linux-image-2.6.24-etchnhalf.1-r5k-cobalt_2.6.24-6~etchnhalf.9etch3_mipsel.deb) ...
Done.
Setting up module-init-tools (3.3-pre4-2) ...

Setting up linux-image-2.6.24-etchnhalf.1-r5k-cobalt (2.6.24-6~etchnhalf.9etch3) ...

Hmm. The package shipped with a symbolic link /lib/modules/2.6.24-etchnhalf.1-r5k-cobalt/source
However, I can not read the target: No such file or directory
Therefore, I am deleting /lib/modules/2.6.24-etchnhalf.1-r5k-cobalt/source

Running depmod.

# 他に何かすることがあるのかな。「However, I can not read the target: No such file or directory」が気になる。取り敢えずここまで。

参考文献

コメント