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

Re: ..how do I tell apt-get | dpkg about bad files off a bad disk? Clue Whack, Please!



On Mon, 01 Dec 2003 13:59:34 -0500, 
Mark Roach <mrroach@okmaybe.com> wrote in message 
<1070305173.5497.16.camel@flmrroach.okmaybe.com>:

> On Mon, 2003-12-01 at 11:05, Arnt Karlsen wrote:
> > Hi,
> > 
> > ..on remastering a wee knoppix derivative, the disk whined about
> > read errors down the /usr/XFree86 tree, so I moved my tree to
> > another disk, and figured apt-get --reinstall or some such should
> > fix it for me.
> > 
> > ..the "some such" is the problem;  how do I get "apt-get
> > --re-install" to overwrite my bad files???  Or, tell the apt-get |
> > dpkg database about bad files off a bad disk?
> 
> Does "apt-get install --reinstall <packagename>" work? 

..nope:  root@not a tty[/]# ping ftp.us.debian.org
PING ftp.us.debian.org (216.37.55.114) 56(84) bytes of data.
64 bytes from rama.progeny.com (216.37.55.114): 
icmp_seq=1 ttl=49 time=152 ms
64 bytes from rama.progeny.com (216.37.55.114): 
icmp_seq=2 ttl=49 time=153 ms
64 bytes from rama.progeny.com (216.37.55.114): 
icmp_seq=3 ttl=49 time=151 ms

--- ftp.us.debian.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2023ms
rtt min/avg/max/mdev = 151.806/152.593/153.209/0.739 ms
root@not a tty[/]# ping ftp.no.debian.org
PING spheniscus.uninett.no (158.36.2.10) 56(84) bytes of data.
64 bytes from spheniscus.uninett.no (158.36.2.10): icmp_seq=1 
ttl=57 time=22.7 ms
64 bytes from spheniscus.uninett.no (158.36.2.10): icmp_seq=2 
ttl=57 time=17.2 ms
64 bytes from spheniscus.uninett.no (158.36.2.10): icmp_seq=4 
\ttl=57 time=21.1 ms

--- spheniscus.uninett.no ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 3017ms
rtt min/avg/max/mdev = 17.279/20.406/22.796/2.311 ms
root@not a tty[/]# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ stable main non-free contrib
#
deb http://ftp.no.debian.org/debian/ stable main non-free contrib
#deb http://non-us.debian.org/debian-non-US/ testing/non-US \
main contrib non-free
#deb http://ftp.no.debian.org/debian-non-US/ testing/non-US main \
contrib non-free
#deb-src http://non-us.debian.org/debian-non-US/ testing/non-US \
main contrib non-free
#deb http://www.modularity.org/knoppix ./
root@not a tty[/]# apt-get install --reinstall xserver-common
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, re-installation of xserver-common is not possible, it \
cannot be downloaded.
0 packages upgraded, 0 newly installed, 0 to remove and \
0  not upgraded.
root@not a tty[/]#
root@not a tty[/]# apt-get install --reinstall xserver-common
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, re-installation of xserver-common is not possible, it \
cannot be downloaded.
0 packages upgraded, 0 newly installed, 0 to remove and 0 \
not upgraded.
root@not a tty[/]# ping -R ftp.no.debian.org
PING spheniscus.uninett.no (158.36.2.10) 56(124) bytes of data.
64 bytes from spheniscus.uninett.no (158.36.2.10): 
icmp_seq=1 ttl=57 time=18.8 ms
RR:     192.168.2.249
        192.168.1.22
        80.239.32.254
        80.239.26.35
        213.225.70.122
        vlan80.stv-msfc1.no.sn.net (213.225.109.14)
        213.225.109.226
        nix-gw.no.sn.net (193.156.90.21)
        oslo-gw1.uninett.no (158.36.2.2)

64 bytes from spheniscus.uninett.no (158.36.2.10): 
icmp_seq=2 ttl=57 time=25.1 ms       (same route)
64 bytes from spheniscus.uninett.no (158.36.2.10): 
icmp_seq=3 ttl=57 time=24.3 ms       (same route)
64 bytes from spheniscus.uninett.no (158.36.2.10): 
icmp_seq=4 ttl=57 time=451 ms        (same route)
64 bytes from spheniscus.uninett.no (158.36.2.10): 
icmp_seq=5 ttl=57 time=278 ms        (same route)

--- spheniscus.uninett.no ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 5344ms
rtt min/avg/max/mdev = 18.857/159.719/451.849/176.465 ms
root@not a tty[/]# ping -R ftp.us.debian.org
PING ftp.us.debian.org (204.152.189.120) 56(124) bytes of data.

--- ftp.us.debian.org ping statistics ---
34 packets transmitted, 0 received, 100% packet loss, time 33012ms

root@not a tty[/]# vi /etc/apt/sources.list  # weeded yank sites
root@not a tty[/]# apt-get install --reinstall xserver-common
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, re-installation of xserver-common is not possible, 
it cannot be downloaded.
0 packages upgraded, 0 newly installed, 0 to remove 
and 0  not upgraded.
root@not a tty[/]# apt-get update
Hit http://ftp.no.debian.org stable/main Packages
Hit http://ftp.no.debian.org stable/main Release
Hit http://ftp.no.debian.org stable/non-free Packages
Hit http://ftp.no.debian.org stable/non-free Release
Hit http://ftp.no.debian.org stable/contrib Packages
Hit http://ftp.no.debian.org stable/contrib Release
Reading Package Lists... Done
Building Dependency Tree... Done
root@not a tty[/]# apt-get install --reinstall xserver-common
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, re-installation of xserver-common is not possible, 
it cannot be downloaded.
0 packages upgraded, 0 newly installed, 0 to remove 
and 0  not upgraded.
root@not a tty[/]# cat /root/dsl-0.5-selections | grep ^x
xbase-clients                                   install
xfmail                                          install
xfonts-75dpi                                    install
xfonts-base                                     install
xfree86-common                                  install
xlib6g                                          install
xlibmesa3                                       install
xlibs                                           install
xmms                                            install
xpdf-common                                     install
xserver-common                                  install
xutils                                          install
root@not a tty[/]#

> you might need to erase the cached .deb file from
> /var/cache/apt/archives/

..root@not a tty[/]# ll -G /var/cache/apt/archives/
total 508
-rw-r--r--    1 root       129442 Sep 26  2002
cpp-2.95_1%3a2.95.4-11woody1_i386.deb
-rw-r--r--    1 root       374154 Aug 11 20:47
libperl5.6_5.6.1-8.3_i386.deb
-rw-r-----    1 root            0 Dec  1 15:09 lock
drwxr-xr-x    2 root         4096 Dec  1 15:10 partial
root@not a tty[/]# ll -G /var/cache/apt/archives/partial/
total 0
root@not a tty[/]#

..long lines cut to wrap nicely.

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.



Reply to: