Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Bypass apt-get "403 Forbidden" errors

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
User avatar
kladizkov
Posts: 35
Joined: 2007-07-21 04:39

Bypass apt-get "403 Forbidden" errors

#1 Post by kladizkov »

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?

infinitycircuit
Posts: 1137
Joined: 2007-07-24 03:31
Location: California

#2 Post by infinitycircuit »

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

plugwash
Posts: 2507
Joined: 2006-09-17 01:10
Contact:

#3 Post by plugwash »

I think if you just dump the files you downloaded manually in /var/cache/apt/archives apt will use them.

User avatar
Issyer
Posts: 3032
Joined: 2007-05-23 02:59
Location: Khakassia

#4 Post by Issyer »

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
kladizkov
Posts: 35
Joined: 2007-07-21 04:39

#5 Post by kladizkov »

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

Thanks for the replies.

Post Reply