[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing/updating packages are very slow



On 25/10/2014, Scott Ferguson <scott.ferguson.debian.user@gmail.com> wrote:
> On 25/10/14 21:17, Bret Busby wrote:
>> On 25/10/2014, Brian <ad44@cityscape.co.uk> wrote:
>>> On Sat 25 Oct 2014 at 11:44:32 +0800, Bret Busby wrote:
>>>
>>>> On 23/10/2014, Bob Proulx <bob@proulx.com> wrote:
>>>>> Igor Sverkos wrote:
>>>>>> As you can see, it is always the "Unpacking" step which is taking all
>>>>>> the
>>>>>> time.
>>>>>
>>>>> dpkg has added fsync() calls after all file actions.  This
>>>>> significantly slows down file operations.  Basically it disables the
>>>>> file system buffer cache causing it to operate at disk drive speeds.
>>>>> This is why unpacking files is quite a bit slow.
>>>>>
>>>>
>>>> Is this why the Update Manager (on Debian 6 LTS) has stopped working?
>>>>
>>>> When I try to run Update Manager, I end up having to kill it.
>>>>
>>>> "
>>>> Update Manager (as superuser) is not responding.
>>>>
>>>> You may choose to wait a short while for it to continue or force the
>>>> application to quit entirely.
>>>> "
>>>>
>>>> It displays "Downloading list of changes", or something like that, and
>>>> then freezes, and, after five minutes or so, with no change, I have to
>>>> kill it.
>>>
>>> Please post the output of
>>>
>>>    apt-get update
>>>
>>>
>>
>>
>> "
>> :~# apt-get update
>> Get:1 http://ftp.au.debian.org squeeze-updates Release.gpg [836 B]
>> Ign http://ftp.au.debian.org/debian/ squeeze-updates/main
>> Translation-en
>> Ign http://ftp.au.debian.org/debian/ squeeze-updates/main
>> Translation-en_AU
>> Get:2 http://ftp.au.debian.org squeeze-updates Release [113 kB]
>> Hit http://ftp.au.debian.org squeeze-updates/main amd64
>> Packages/DiffIndex
>> Hit http://deb.opera.com stable Release.gpg
>> Ign http://deb.opera.com/opera/ stable/non-free Translation-en
>> Ign http://deb.opera.com/opera/ stable/non-free Translation-en_AU
>> Hit http://security.debian.org squeeze/updates Release.gpg
>> Ign http://security.debian.org/ squeeze/updates/main Translation-en
>> Ign http://security.debian.org/ squeeze/updates/main Translation-en_AU
>> Hit http://security.debian.org squeeze/updates Release
>> Hit http://deb.opera.com stable Release
>> Hit http://security.debian.org squeeze/updates/main amd64 Packages
>> Ign http://deb.opera.com stable/non-free amd64 Packages
>> Hit http://deb.opera.com stable/non-free amd64 Packages
>> Get:3 http://ftp.de.debian.org squeeze-lts Release.gpg [836 B]
>> Ign http://ftp.de.debian.org/debian/ squeeze-lts/contrib
>> Translation-en
>> Ign http://ftp.de.debian.org/debian/ squeeze-lts/contrib
>> Translation-en_AU
>> Ign http://ftp.de.debian.org/debian/ squeeze-lts/main Translation-en
>> Ign http://ftp.de.debian.org/debian/ squeeze-lts/main
>> Translation-en_AU
>> Ign http://ftp.de.debian.org/debian/ squeeze-lts/non-free
>> Translation-en
>> Ign http://ftp.de.debian.org/debian/ squeeze-lts/non-free
>> Translation-en_AU
>> Get:4 http://ftp.de.debian.org squeeze-lts Release [28.7 kB]
>> Hit http://ftp.de.debian.org squeeze-lts/main Sources/DiffIndex
>> Get:5 http://ftp.de.debian.org squeeze-lts/contrib Sources [14 B]
>> Get:6 http://ftp.de.debian.org squeeze-lts/non-free Sources [14 B]
>> Hit http://ftp.de.debian.org squeeze-lts/main amd64 Packages/DiffIndex
>> Get:7 http://ftp.de.debian.org squeeze-lts/contrib amd64 Packages [14
>> B]
>> Get:8 http://ftp.de.debian.org squeeze-lts/non-free amd64 Packages [14
>> B]
>> Fetched 144 kB in 7s (18.0 kB/s)
>> Reading package lists... Done
>> N: Ignoring file 'opera.list.save' in directory
>> '/etc/apt/sources.list.d/' as it has an invalid filename extension
>>
>> "
>>
>
>
> top?
>
> df -h?

"
:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6              77G  6.5G   67G   9% /
tmpfs                 7.8G     0  7.8G   0% /lib/init/rw
udev                  7.8G  296K  7.8G   1% /dev
tmpfs                 7.8G     0  7.8G   0% /dev/shm
/dev/sda8              77G   73G  194M 100% /home
/dev/sdf1              60G   49G   11G  83% /media/B004-EFE5

"

>
> free -m?

"
:~# free -m
             total       used       free     shared    buffers     cached
Mem:         15951      15835        115          0         32        424
-/+ buffers/cache:      15378        572
Swap:        41855       1212      40643

"

>
> anything relevant in /var/log/syslog?
>
> any segfaults in dmesg?
>
>
>
>
> Other, probably peripheral, issues:-
>
> * you have an invalid sources.list.d entry.
> Fix with (as root):-
> mv /etc/apt/sources.list.d/opera.list.save /etc/apt
>
>
> * You 'might' not using the closest/fastest repositories. There are ways
> to check, automagically choose the quickest ones. All explained
> previously here and on wiki.debian.org.  "# tcptraceroute" to those
> repositories will give more information (I don't know your timeout
> settings).
> If you state your ISP the list 'might' be able to recommend a mirror
> that is:-
> ;close and fast.
> ;and that your ISP doesn't count against your transfer totals.
>

The ISP that [provides me with Internet access (I use a different ISP
for web hosting and thence for access to incoming email from my domain
names email addresses), is Optus. Quota is unlimited.

>
> * With opera repositories - stable no longer means "squeeze". This (most
> likely) does not cause the problems you are experiencing - but it won't
> help things.
> Change it to "squeeze"[*1]
>

"
:~# ls /etc/apt/sources.list.d/
opera.list  opera.list.save
root@bret-dd-workstation:~# cat /etc/apt/sources.list.d/opera.list.save
# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades

deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases)

# The line above will make sure you get all final public releases.
# Uncomment the following line if you want to get alpha and beta
# releases, too.

# deb http://deb.opera.com/opera-beta/ stable non-free #Opera Browser
(beta releases)
root@bret-dd-workstation:~# vi /etc/apt/sources.list.d/opera.list.save
root@bret-dd-workstation:~# apt-get update
Hit http://ftp.au.debian.org squeeze-updates Release.gpg
Ign http://ftp.au.debian.org/debian/ squeeze-updates/main
Translation-en
Ign http://ftp.au.debian.org/debian/ squeeze-updates/main
Translation-en_AU
Hit http://ftp.au.debian.org squeeze-updates Release
Hit http://ftp.au.debian.org squeeze-updates/main amd64
Packages/DiffIndex
Hit http://ftp.de.debian.org squeeze-lts Release.gpg
Ign http://ftp.de.debian.org/debian/ squeeze-lts/contrib Translation-en
Ign http://ftp.de.debian.org/debian/ squeeze-lts/contrib Translation-en_AU
Ign http://ftp.de.debian.org/debian/ squeeze-lts/main Translation-en
Ign http://ftp.de.debian.org/debian/ squeeze-lts/main Translation-en_AU
Ign http://ftp.de.debian.org/debian/ squeeze-lts/non-free Translation-en
Ign http://ftp.de.debian.org/debian/ squeeze-lts/non-free Translation-en_AU
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_AU
Hit http://security.debian.org squeeze/updates Release
Hit http://ftp.de.debian.org squeeze-lts Release
Hit http://security.debian.org squeeze/updates/main amd64 Packages
Hit http://ftp.de.debian.org squeeze-lts/main Sources/DiffIndex
Hit http://ftp.de.debian.org squeeze-lts/contrib Sources
Hit http://ftp.de.debian.org squeeze-lts/non-free Sources
Hit http://ftp.de.debian.org squeeze-lts/main amd64 Packages/DiffIndex
Hit http://ftp.de.debian.org squeeze-lts/contrib amd64 Packages
Hit http://ftp.de.debian.org squeeze-lts/non-free amd64 Packages
Hit http://deb.opera.com stable Release.gpg
Ign http://deb.opera.com/opera/ stable/non-free Translation-en
Ign http://deb.opera.com/opera/ stable/non-free Translation-en_AU
Hit http://deb.opera.com stable Release
Ign http://deb.opera.com stable/non-free amd64 Packages
Hit http://deb.opera.com stable/non-free amd64 Packages
Reading package lists... Done
N: Ignoring file 'opera.list.save' in directory
'/etc/apt/sources.list.d/' as it has an invalid filename extension
root@bret-dd-workstation:~# cat /etc/apt/sources.list.d/opera.list.save
# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades

deb http://deb.opera.com/opera/ squeeze non-free #Opera Browser (final releases)

# The line above will make sure you get all final public releases.
# Uncomment the following line if you want to get alpha and beta
# releases, too.

# deb http://deb.opera.com/opera-beta/ stable non-free #Opera Browser
(beta releases)
"

After doing that, it occurred to me, that the defined error, is not in
the content of the file, but, in the file name;

"
N: Ignoring file 'opera.list.save' in directory
'/etc/apt/sources.list.d/' as it has an invalid filename extension
"

So, to me, the file name itself, is not compatible; the
"opera.list.save" file name.


> There should be no problems with you commenting out opera repositories
> until you've resolved your current difficulties.
>
>
>
>
> Hope that helps to sort out minor contributing factors to slow updates,
> from the main cause
>
> [*1] see - http://deb.opera.com/opera/dists/ for more fine grained
> compatibility control options than "[currently]stable"
>
>
> Kind regards
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> Archive: [🔎] 544B7113.4000704@gmail.com">https://lists.debian.org/[🔎] 544B7113.4000704@gmail.com
>
>


-- 
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is,
 you'll know what the answer means."
- Deep Thought,
 Chapter 28 of Book 1 of
 "The Hitchhiker's Guide to the Galaxy:
 A Trilogy In Four Parts",
 written by Douglas Adams,
 published by Pan Books, 1992

....................................................


Reply to: