update failures from China

Post your update and upgrade related errors here
Forum rules
Before you post please read this

update failures from China

Postby jhancock on Sun Oct 30, 2011 11:21 pm

I installed LMDE 201109 and find the update process fails too much to be usable. Its not consistent so I think its just bad networks: latency, dropped packets. I've tried the update manager GUI and from its embedded console output I see many failures while downloading package info. When I try to do a large upgrade, enough downloads fail that it messes up my system. I've tried the "traditional way", I'm coming from ubuntu and use commande line: sudo apt-get update; sudo apt-get upgrade. These commands show similar failed file downloads. The problem doesn't seem to be DNS or the China firewall blocking things as the same domains are resolving and working for some packages and not for others and its not consistent.

So the big question: Is there a more fault tolerant method? Apt just chugs along when it fails to grab something...no retries. I suppose I don't see this problem on ubuntu as I'm hitting China mirrors.

Any ideas? thanks, Jon
jhancock
Level 1
Level 1
 
Posts: 4
Joined: Tue Jan 04, 2011 11:08 pm

Linux Mint is funded by ads and donations.
 

Re: update failures from China

Postby Garvan on Sun Oct 30, 2011 11:34 pm

I have had failures to update a few times because of a dropped Internet connection, and it never recovers by itself. This clears out the old lists,

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update


And then update works as normal again.

Garvan
Desktop: Dell, Intel Core 2 Duo E7500 @ 2.93Ghz, 2GiB RAM, Linux Mint 13 Maya.
Net-book: SAMSUNG N148-Plus, 2x Intel Atom CPU N450 @1.66Ghz, 1GB RAM, lubuntu 12.04.
User avatar
Garvan
Level 4
Level 4
 
Posts: 273
Joined: Sun May 29, 2011 3:26 am
Location: Cambodia

Re: update failures from China

Postby jhancock on Mon Oct 31, 2011 12:03 am

thanks for the advice on clearing out the "update" info. Is there some trick to ensuring that a lengthy "upgrade" will retry failed downloads prior to attempting to unpack and install? I only know the basics of apt...maybe there are some more robust command line switches I could be using.

thanks, Jon
jhancock
Level 1
Level 1
 
Posts: 4
Joined: Tue Jan 04, 2011 11:08 pm

Re: update failures from China

Postby wayne128 on Mon Oct 31, 2011 12:11 am

jhancock wrote:thanks for the advice on clearing out the "update" info. Is there some trick to ensuring that a lengthy "upgrade" will retry failed downloads prior to attempting to unpack and install? I only know the basics of apt...maybe there are some more robust command line switches I could be using.

thanks, Jon



Jon
I often had similar issue eventhou I have very high download speed.
in such as, I would use

apt-get dist-upgrade --fix-missing

I do not know if it works for you in low bandwidth situation. May be worth a try when situation arises.

on terminal, man apt-get to read its details, look for -m

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.
wayne128
Level 9
Level 9
 
Posts: 2830
Joined: Tue Jul 13, 2010 12:15 am

Re: update failures from China

Postby jhancock on Mon Oct 31, 2011 12:32 am

Sounds good. thanks.
I am used to using "upgrade" on ubuntu and was taught never to use "dist-upgrade". Is there similar logical for debian or do I always want to use dist-upgrade with deb (or for LMDE)? Would the rational be different for a server as opposed to a desktop?

btw, I'm working towards having deb squeeze as the base for my desktop and server. I'm tired of ubuntu not being up to date enough with third party packages as happens to me with ubuntu LTS server versions.

thanks, Jon
jhancock
Level 1
Level 1
 
Posts: 4
Joined: Tue Jan 04, 2011 11:08 pm

Re: update failures from China

Postby wyrdoak on Mon Oct 31, 2011 2:59 am

This thread might help: viewtopic.php?f=198&t=67502
-Dell Mini Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(Maya-Xfce) LInux 3.2.0.57-generic(i686)
SolydX (32bit)
User avatar
wyrdoak
Level 6
Level 6
 
Posts: 1310
Joined: Thu May 19, 2011 1:32 pm
Location: USA


Return to Update/Upgrade Issues

Who is online

Users browsing this forum: capponz and 2 guests