Re: apt-get dselect upgrade problems
On Thu, Jul 12, 2001 at 09:52:46AM -0400, John Covici wrote:
> I just did apt-get update before doing the upgrade -- how could they
> be out of date?
If you do a "dselect-upgrade" with apt-get, it will use the dpkg available
packages database. Apt normally uses its own available packages database,
and does not use the dpkg database. The dpkg available database must also
be kept up to date, but there is no "apt-get dselect-update" for that.
I think that apt-get should do this on every regular "apt-get update",
because it should keep the dpkg available packages list in sync with
the user's expectations.
You can still do this in dselect or manually, using
apt-cache dumpavail | dpkg --update-avail
Until apt gets this right on regular updates, you should run update
It is generally also advisable to manage your package selections in
dselect, so you know eg. what you are upgrading in advance. Then, when
you run install in dselect, it will do the "apt-get dselect-upgrade"
for you. So if you stay in dselect the whole time, it is even less
typing than with apt-get.
> > > I am trying to do apt-get dselect-upgrade and I am getting some
> > > missing files and indeed if I ftp to the debian site the files are
> > > not there -- but why do the package lists point to files which are not
> > > there?
> > >
> > > I am running woody here and here is the relevant portion of the
> > > output.
> > >
> > > 321 packages upgraded, 18 newly installed, 4 to remove and 13 not upgraded.
> > > Need to get 8864kB/169MB of archives. After unpacking 9560kB will be used.
> > > Do you want to continue? [Y/n] Get:1 ftp://ftp.us.debian.org unstable/main bsdutils 1:2.11g-4 [34.7kB]
> > > Err ftp://ftp.us.debian.org unstable/main bsdutils 1:2.11g-4
> > > Unable to fetch file, server said '/debian/pool/main/u/util-linux/bsdutils_2.11g-4_i386.deb: No such file or directory. '
> > > Get:2 ftp://ftp.us.debian.org unstable/main mount 2.11g-4 [97.1kB]
> > > Err ftp://ftp.us.debian.org unstable/main mount 2.11g-4
> > > Unable to fetch file, server said '/debian/pool/main/u/util-linux/mount_2.11g-4_i386.deb: No such file or directory. '
> > [many more]
> > > E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
> > >
> > > Any assistance would be appreciated.
> > Your available packages database is out of date, it seems.
> > Run "dselect update select install" and see if it helps.
> > Cheers,
> > Joost
> John Covici