On 24-Apr-00, you wrote: > Björn Johansson wrote: > >> On 19-Apr-00, you wrote: >> >>> Bjvrn Johansson wrote: >>> >>>>> The best would be to use apt-get, the only suggestion I can give is >> to >>>>> move all archives to /var/cache/apt/archives/ >>>> >>>> done. Should the filestructure remain(all the directories: admin, >> base, >>>> comm and so on...) or should I just make all the archives lie there >> all >>>> mixed up together? :-/ >>> >>> apt wants all files directly in /var/cache/apt/archives/ . >>> >>> >>> Michel >>> >>> >> >> How should I use apt? I tried apt-get install /var/cache/archives/ >> but with no luck :(. I now have ALL files in the path. > > I think there's some confusion here. If you have the filestructure > available, just point apt to those files using a file: URL in > /etc/apt/sources.list, e.g. > > file:/whatever/debian > > where /whatever/debian contains the directory "dists". Then you can use: > > apt-get update > apt-get dist-upgrade > apt-get install [package name] > > and all the other apt goodies. apt should also function within dselect if > you do this, dselect will make package selection and management much > easier than apt alone. > > Part of apt's function is to move or link the relevant subset of those > debs (those which are to be installed or upgraded) into > /var/cache/apt/archives, then call dpkg to install/upgrade them. So apt > puts the files there, but does not want them there to begin with. And you > certainly don't want to put every .deb from the powerpc distribution in > there. > > So I hate to say this, but you should erase the .deb files from > /var/cache/apt/archives (or attempt to put them back into the > dists/potato/main... filestructure if you removed them from their former > location), then put the file: URL in /etc/apt/sources.list, then run > dselect and tell it to use apt to get the files, and use the update, > select, and install steps in dselect to complete your installation. > > HTH, > > -Adam P. > >
I now have all the files(including the right filestructure) in: /var/cache/apt/archives/dists/frozen/main/binary-powerpc/ Does this mean(in my case) that the sources.list haveto contain this line: deb file:/var/cache/apt/archives/dists/frozen/main/binary-powerpc ? When installing Debian for the first time the base2_2.tgz get extracted through the install program, could an upgrade for these files cause that the password for root and other users disappear? :-/ I managed to do something strange with my system so that I couldn't log in as root, hmm.. I have now done a new installation and I'm going to be a *little* more careful this time ;). -- Kind regards Björn Johansson A4000, PPC604e @ 233Mhz (AmigaOS3.5 + Debian2.2)