[SOLVED] Re: Gutsy upgrade question: Manually downloading some packages using wget
Hugo Heden
hugoheden at gmail.com
Tue Oct 30 13:02:14 UTC 2007
Problem solved, see below
On 10/29/07, Hugo Heden <hugoheden at gmail.com> wrote:
> Good day all,
>
> I have a problem with upgrading to Gutsy -- the update-manager tells
> me [1] that it fails to fetch some 30 files (of the 1200 it needed).
> So update-manager cancels the upgrade, and reset /etc/apt/sources.list
> to point to feisty.
>
> (I suspect that this has to do with the (stupid) virus scanner in my
> company firewall.. I've tried using several different Software
> Sources, but to no avail.)
>
> However, I can download the 30 package files (deb-files) using wget,
> so I actually have them on my file system.
>
> Now, how do I continue? How do I tell update-manager to continue, but
> using the deb-files that I have manually downloaded?
>
[snip]
>
>
> [1] "Could not download the upgrades. The upgrade aborts now. Please
> check your internet connection or installation media and try again. "
>
After update-manager cancelled with the message as described above,
what did the trick was the following simple steps:
0) Close down update-manager
1) Manually download the missing deb-files using wget
2) Make sure those deb-files are not corrupt in any way (though I am
not sure how to really do that).
If they are corrupt, I think update-manager will discover that in
later steps below, and try to download them again. And the whole
problem here was that downloading fails for some reason.
3) $ sudo cp manually_downloaded_debfiles/*.deb /var/cache/apt/archives/
(not sure if that is dangerous)
4) Make sure that no deb-files with the same name as those manually
downloaded exist within /var/cache/apt/archives/partial .
If such files exist there, they are likely to be corrupt
(half-downloaded or whatever). Update-manager will discover the files
under /var/cache/apt/archives/partial in later steps, and *remove* the
corresponding files in /var/cache/apt/archives/ that were copied in
step 3, and try to download them again.
What I did was (not sure if this is dangerous)
$ sudo rm /var/cache/apt/archives/partial/*.deb
5) Re-run update-manager. Everything works.
Many many thanks to Wulfmann, Derek and David for all the pointers I
have been given! I've learned a lot.
Best regards
Hugo Heden
More information about the ubuntu-users
mailing list