Bypass apt-get "403 Forbidden" errors

Help with issues regarding installation of Debian

Bypass apt-get "403 Forbidden" errors

Postby kladizkov » 2008-11-13 21:19

Hi,

My problem is regarding "apt-get upgrade". I'm behind a proxy that blocks files of more than 20mb from getting downloaded. I gave "apt-get upgrade" and most packages got download, but not the ones with more than 20mb like mysql-server and some others.

Now, i got packages which are less than 20mb in /var/cache/apt/archives/ and i have managed to download the rest of the packages, having more than 20mb, manually using a web-proxy connection.

Question is, how can I make apt-get trick into believing that it has downloaded all packages into /var/cache/apt/archives/ and make it install them?

Please help?
User avatar
kladizkov
 
Posts: 35
Joined: 2007-07-21 04:39

Postby infinitycircuit » 2008-11-13 23:01

man 8 apt-get:

Code: Select all
       -m, --ignore-missing, --fix-missing
           Ignore missing packages; If packages cannot be retrieved or fail
           the integrity check after retrieval (corrupted package files),
           hold back those packages and handle the result. Use of this
           option together with -f may produce an error in some situations.
           If a package is selected for installation (particularly if it is
           mentioned on the command line) and it could not be downloaded
           then it will be silently held back. Configuration Item:
           APT::Get::Fix-Missing.


apt-get -m upgrade
I am currently a Debian Maintainer. I am also in the New Maintainers' Queue.
infinitycircuit
 
Posts: 1137
Joined: 2007-07-24 03:31
Location: California

Postby plugwash » 2008-11-14 00:23

I think if you just dump the files you downloaded manually in /var/cache/apt/archives apt will use them.
plugwash
 
Posts: 2508
Joined: 2006-09-17 01:10

Postby Issyer » 2008-11-14 02:22

No way, if the packages are interconnected through missing dependencies. You can try to cd to that apt folder and do dpkg -i *.deb.

Or you can ignore missings via dpkg and then apt-get install -f, if that works.
User avatar
Issyer
 
Posts: 3024
Joined: 2007-05-23 02:59
Location: Khakassia

Postby kladizkov » 2008-11-15 23:24

Yea, I just have to copy those packages to /var/cache/apt/archives/ :D

Thanks for the replies.
User avatar
kladizkov
 
Posts: 35
Joined: 2007-07-21 04:39


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable