[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Lenny -> Squeeze -> Wheezy; no eth0 on Squeeze reboot



On 20/07/2014 21:21, Pascal Hambourg wrote:
Ron Leach a écrit :

cannot fetch over the network

Can't you just configure and activate eth0 manually ?
If by DHCP :
# dhclient eth0
If statically :
# ifconfig eth0<address>  netmask<mask>
# route add default gw<router>
# echo nameserver<dns>  >>  /etc/resolv.conf # if needed


Pascal, thank you. Indeed I can - I hadn't known that was a possible method. Worked, and now able to access remotely which will make things faster.

Package ifupdown is missing, though.
# apt-get install ifupdown
replies:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ifupdown is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ifupdown has no installation candidate

So, I don't seem to be able to introduce ifupdown to this Squeeze system. As a result, each restart leaves eth0 down and the machine is - very - difficult to get at, and to see / touch a keyboard, to type the ifconfig command.

I'm also very surprised that eth0 doesn't come up - I must have done something quite badly wrong with this upgrade for that to have happened, not least because Debian is seriously reliable with all its upgrades and documentation, and thousands of systems must have followed this path before - and may still be doing so; I doubt we're the only place with some Lenny servers running. I read and followed the Squeeze documents, though, and used the apt sources described in the squeeze-LTS documents.

Here are the apt sources I'm using, and I find that several of these do not work:

deb http://http.debian.net/debian/ squeeze-lts main contrib non-free
deb-src http://http.debian.net/debian/ squeeze-lts main contrib non-free

deb http://http.debian.net/debian/ squeeze main contrib non-free
deb-src http://http.debian.net/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://http.debian.net/debian squeeze-lts main contrib non-free
deb-src http://http.debian.net/debian squeeze-lts main contrib non-free

apt reports errors on:

Err http://http.debian.net squeeze-lts/main Packages
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze-lts/contrib Packages
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze-lts/non-free Packages
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze-lts/main Sources
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze-lts/contrib Sources
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze-lts/non-free Sources
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze/main Packages
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze/contrib Packages
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze/non-free Packages
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze/main Sources
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze/contrib Sources
  302 Found [IP: 46.4.205.44 80]
Err http://http.debian.net squeeze/non-free Sources
  302 Found [IP: 46.4.205.44 80]
W: Failed to fetch http://http.debian.net/debian/dists/squeeze-lts/main/binary-i386/Packages 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze-lts/contrib/binary-i386/Packages 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze-lts/non-free/binary-i386/Packages 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze-lts/main/source/Sources 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze-lts/contrib/source/Sources 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze-lts/non-free/source/Sources 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze/main/binary-i386/Packages 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze/contrib/binary-i386/Packages 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze/non-free/binary-i386/Packages 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze/main/source/Sources 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze/contrib/source/Sources 302 Found [IP: 46.4.205.44 80]

W: Failed to fetch http://http.debian.net/debian/dists/squeeze/non-free/source/Sources 302 Found [IP: 46.4.205.44 80]

That looks serious, and perhaps is the cause of the upgrade being incomplete. I'd followed the advice here:

https://wiki.debian.org/LTS/Using#Add_squeeze-lts_to_your_sources.list


Just on basics for moving this forward, may I have some advice about automating the ifconfig command? If I had a script with the ifconfig and route add commands in it, and made it executable, could someone suggest from where I could call it during the start-up sequence, so that a keyboard/screen interaction wouldn't be necessary?

regards, Ron


Reply to: