Slow upgrading and downloading

Gene Heskett gheskett at shentel.net
Mon Jul 4 03:01:12 UTC 2016


On Sunday 03 July 2016 21:12:46 Scott Blair wrote:

> On 07/03/2016 08:34 PM, Gene Heskett wrote:
> > On Sunday 03 July 2016 18:43:40 Scott Blair wrote:
> >> Lately when I have been upgrading or even installing a program, it
> >> takes 5 to 10 minutes. It just sits there for that time. After
> >> awhile it then begins the download and install. When installing a
> >> program I get this error message:
> >>
> >> W: Target Packages (universe/binary-amd64/Packages) is configured
> >> multiple times in /etc/apt/sources.list:18 and
> >> /etc/apt/sources.list:54 W: Target Packages
> >> (universe/binary-i386/Packages) is configured multiple times in
> >> /etc/apt/sources.list:18 and /etc/apt/sources.list:54 W: Target
> >> Packages (universe/binary-all/Packages) is configured multiple
> >> times in /etc/apt/sources.list:18 and /etc/apt/sources.list:54 W:
> >> Target Translations (universe/i18n/Translation-en_US) is configured
> >> multiple times in /etc/apt/sources.list:18 and
> >> /etc/apt/sources.list:54 W: Target Translations
> >> (universe/i18n/Translation-en) is configured multiple times in
> >> /etc/apt/sources.list:18 and
> >> /etc/apt/sources.list:54 W: Target Packages
> >> (multiverse/binary-amd64/Packages) is configured multiple times in
> >> /etc/apt/sources.list:28 and /etc/apt/sources.list:54 W: Target
> >> Packages (multiverse/binary-i386/Packages) is configured multiple
> >> times in /etc/apt/sources.list:28 and /etc/apt/sources.list:54 W:
> >> Target Packages (multiverse/binary-all/Packages) is configured
> >> multiple times in /etc/apt/sources.list:28 and
> >> /etc/apt/sources.list:54 W: Target Translations
> >> (multiverse/i18n/Translation-en_US) is configured multiple times in
> >> /etc/apt/sources.list:28 and /etc/apt/sources.list:54 W: Target
> >> Translations (multiverse/i18n/Translation-en) is configured
> >> multiple times in /etc/apt/sources.list:28 and
> >> /etc/apt/sources.list:54 W: Target Packages
> >> (restricted/binary-amd64/Packages) is configured multiple times in
> >> /etc/apt/sources.list:7 and /etc/apt/sources.list:58 W: Target
> >> Packages (restricted/binary-i386/Packages) is configured multiple
> >> times in /etc/apt/sources.list:7 and /etc/apt/sources.list:58 W:
> >> Target Packages (restricted/binary-all/Packages) is configured
> >> multiple times in /etc/apt/sources.list:7 and
> >> /etc/apt/sources.list:58 W: Target Translations
> >> (restricted/i18n/Translation-en_US) is configured multiple times in
> >> /etc/apt/sources.list:7 and
> >> /etc/apt/sources.list:58 W: Target Translations
> >> (restricted/i18n/Translation-en) is configured multiple times in
> >> /etc/apt/sources.list:7 and /etc/apt/sources.list:58 W: Target
> >> Packages (restricted/binary-amd64/Packages) is configured multiple
> >> times in /etc/apt/sources.list:12 and /etc/apt/sources.list:63 W:
> >> Target Packages (restricted/binary-i386/Packages) is configured
> >> multiple times in /etc/apt/sources.list:12 and
> >> /etc/apt/sources.list:63 W: Target Packages
> >> (restricted/binary-all/Packages) is configured multiple times in
> >> /etc/apt/sources.list:12 and /etc/apt/sources.list:63 W: Target
> >> Translations (restricted/i18n/Translation-en_US) is configured
> >> multiple times in /etc/apt/sources.list:12 and
> >> /etc/apt/sources.list:63 W: Target Translations
> >> (restricted/i18n/Translation-en) is configured multiple times in
> >> /etc/apt/sources.list:12 and /etc/apt/sources.list:63 W: Target
> >> Packages (restricted/binary-amd64/Packages) is configured multiple
> >> times in /etc/apt/sources.list:38 and /etc/apt/sources.list:87 W:
> >> Target Packages (restricted/binary-i386/Packages) is configured
> >> multiple times in /etc/apt/sources.list:38 and
> >> /etc/apt/sources.list:87 W: Target Packages
> >> (restricted/binary-all/Packages) is configured multiple times in
> >> /etc/apt/sources.list:38 and /etc/apt/sources.list:87 W: Target
> >> Translations (restricted/i18n/Translation-en_US) is configured
> >> multiple times in /etc/apt/sources.list:38 and
> >> /etc/apt/sources.list:87 W: Target Translations
> >> (restricted/i18n/Translation-en) is configured multiple times in
> >> /etc/apt/sources.list:38 and /etc/apt/sources.list:87 W: Target
> >> Packages (multiverse/binary-amd64/Packages) is configured multiple
> >> times in /etc/apt/sources.list:38 and /etc/apt/sources.list:87 W:
> >> Target Packages (multiverse/binary-i386/Packages) is configured
> >> multiple times in /etc/apt/sources.list:38 and
> >> /etc/apt/sources.list:87 W: Target Packages
> >> (multiverse/binary-all/Packages) is configured multiple times in
> >> /etc/apt/sources.list:38 and /etc/apt/sources.list:87 W: Target
> >> Translations (multiverse/i18n/Translation-en_US) is configured
> >> multiple times in /etc/apt/sources.list:38 and
> >> /etc/apt/sources.list:87 W: Target Translations
> >> (multiverse/i18n/Translation-en) is configured multiple times in
> >> /etc/apt/sources.list:38 and /etc/apt/sources.list:87 W: Target
> >> Packages (restricted/binary-amd64/Packages) is configured multiple
> >> times in /etc/apt/sources.list:41 and /etc/apt/sources.list:97 W:
> >> Target Packages (restricted/binary-i386/Packages) is configured
> >> multiple times in /etc/apt/sources.list:41 and
> >> /etc/apt/sources.list:97 W: Target Packages
> >> (restricted/binary-all/Packages) is configured multiple times in
> >> /etc/apt/sources.list:41 and /etc/apt/sources.list:97 W: Target
> >> Translations (restricted/i18n/Translation-en_US) is configured
> >> multiple times in /etc/apt/sources.list:41 and
> >> /etc/apt/sources.list:97 W: Target Translations
> >> (restricted/i18n/Translation-en) is configured multiple times in
> >> /etc/apt/sources.list:41 and /etc/apt/sources.list:97 W: Target
> >> Sources (partner/source/Sources) is configured multiple times in
> >> /etc/apt/sources.list:53 and /etc/apt/sources.list:95
> >> W: Target Packages (partner/binary-amd64/Packages) is configured
> >> multiple times in /etc/apt/sources.list:52 and
> >> /etc/apt/sources.list:94 W: Target Packages
> >> (partner/binary-i386/Packages) is configured multiple times in
> >> /etc/apt/sources.list:52 and /etc/apt/sources.list:94 W: Target
> >> Packages (partner/binary-all/Packages) is configured multiple times
> >> in /etc/apt/sources.list:52 and /etc/apt/sources.list:94 W: Target
> >> Translations (partner/i18n/Translation-en_US) is configured
> >> multiple times in /etc/apt/sources.list:52 and
> >> /etc/apt/sources.list:94 W: Target Translations
> >> (partner/i18n/Translation-en) is configured multiple times in
> >> /etc/apt/sources.list:52 and
> >> /etc/apt/sources.list:94
> >>
> >>
> >> Should I go in and edit out the duplicates? Or is it something
> >> else?
> >>
> >>
> >> --
> >>
> >> Scott Blair:
> >> Thanks,
> >>
> >> Scott Blair
> >
> > My first thought, might not be worth 2 cents, is that the computers
> > time is grossly out of whack with the network time.
> >
> >> USMC Defending your freedoms since 10 November 1775
> >>
> >> Save on backup time "BackupDevice=Null"
> >>
> >> If you don't stand behind our troops,
> >> feel free to stand in front of them.
> >
> > Cheers, Gene Heskett
>
> No, the time was only off by 1 minute, fixed, date is good, still the
> same problem.

The hardware clock and the computers time are 2 separate things.
If ntp is not running, and configured for a proper time server,  even 5 
seconds is an error causing problem under some conditions that can be 
pretty common. Please read up on the ntp utility particularly if it is 
not running on your system. Its capable of setting you clock to a few 
microseconds accuracy, thereby ruling out that as a potential source of 
a problem.

ntp will work rather feverishly to characterize your clocks error and 
develop an idea of what it takes to keep you in the acceptable  
ballpark.  Once that has been done, it will back away and only check at 
perhaps half hour or longer intervals.

ntp will, or did, do one run of ntpdate at bootup, putting the clock 
within a second by brute force, after which ntp has a much easier time.

Also the time zone s/b set, including DST if its in effect, and that the 
tzdata file is up to date, new ones being issued several times a year.

However, now that I have rethought this, I am no longer convinced that is 
the main problem, but what it is isn't immediately obvious either. I 
would read the /etc/apt/sources.list with less just to be sure that 
something has not mucked the lists with lots of duplicates, but I have 
never seen that happen.  Murphy's Law says it can, so look anyway.



Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>




More information about the ubuntu-users mailing list