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

 

 

 

aptitude downloads where apt, apt-get or synaptic hang

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
cupakm
Posts: 5
Joined: 2018-07-17 05:58

aptitude downloads where apt, apt-get or synaptic hang

#1 Post by cupakm »

Hi all,

I can't figure out why apt or apt-get (seemingly) randomly hang on downloading packages - happened multiple times, no matter the repo component (main / contrib / non-free),
two samples:

Code: Select all

marek@desktop:~$ sudo apt install gnome-alsamixer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gconf-service gconf2 gconf2-common gnome-mime-data libart-2.0-2 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libgconf-2-4
  libglade2-0 libgnome-2-0 libgnome-keyring-common libgnome-keyring0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0
  libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra liborbit-2-0 psmisc
Suggested packages:
  gconf-defaults-service libbonobo2-bin libgnomevfs2-bin
The following NEW packages will be installed:
  gconf-service gconf2 gconf2-common gnome-alsamixer gnome-mime-data libart-2.0-2 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common
  libgconf-2-4 libglade2-0 libgnome-2-0 libgnome-keyring-common libgnome-keyring0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common
  libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra liborbit-2-0 psmisc
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,161 kB/8,276 kB of archives.
After this operation, 37.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 gconf2-common all 3.2.6-4.1 [1,039 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libgconf-2-4 amd64 3.2.6-4.1 [426 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 gconf-service amd64 3.2.6-4.1 [414 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 gconf2 amd64 3.2.6-4.1 [425 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 libart-2.0-2 amd64 2.3.21-3 [66.8 kB]
Get:6 http://deb.debian.org/debian stretch/main amd64 libbonobo2-common all 2.32.1-3 [243 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 liborbit-2-0 amd64 1:2.14.19-4 [226 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 libbonobo2-0 amd64 2.32.1-3+b1 [281 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 libglade2-0 amd64 1:2.6.4-2+b1 [82.2 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 gnome-mime-data all 2.18.0-2 [363 kB]
42% [10 gnome-mime-data 228 kB/363 kB 63%]^C                                                                                                         
marek@desktop:~$
or

Code: Select all

marek@desktop:~$ sudo apt install musescore
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libqt5help5 musescore-common musescore-general-soundfont qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets
Suggested packages:
  fluid-soundfont-gm timgm6mb-soundfont
The following NEW packages will be installed:
  libqt5help5 musescore musescore-common musescore-general-soundfont qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.9 MB/44.0 MB of archives.
After this operation, 89.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian buster/main amd64 musescore-general-soundfont all 0.1.1-2 [32.2 MB]
12% [1 musescore-general-soundfont 4,457 kB/32.2 MB 14%]^C
marek@desktop:~$
Letting it download again results in a hangup at the same %. Apt-get or synaptic behave likewise.
Clean, autoclean, or computer restart do help - sometimes, can't figure out when.

Strangely, aptitude does work:

Code: Select all

marek@desktop:~$ sudo aptitude install musescore
The following NEW packages will be installed:
  libqt5help5{a} musescore musescore-common{a} musescore-general-soundfont{a} qml-module-qtquick-dialogs{a} qml-module-qtquick-privatewidgets{a} 
0 packages upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 44.0 MB of archives. After unpacking 89.2 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://deb.debian.org/debian buster/main amd64 libqt5help5 amd64 5.10.1-2 [139 kB]
Get: 2 http://deb.debian.org/debian buster/main amd64 musescore-general-soundfont all 0.1.1-2 [32.2 MB]
Get: 3 http://deb.debian.org/debian buster/main amd64 musescore-common all 2.3.1+dfsg1-1 [3,346 kB]                                                   
Get: 4 http://deb.debian.org/debian buster/main amd64 qml-module-qtquick-privatewidgets amd64 5.10.1-2 [44.4 kB]                                      
Get: 5 http://deb.debian.org/debian buster/main amd64 qml-module-qtquick-dialogs amd64 5.10.1-2 [128 kB]                                              
Get: 6 http://deb.debian.org/debian buster/main amd64 musescore amd64 2.3.1+dfsg1-1 [8,236 kB]                                                        
Fetched 44.0 MB in 36s (1,207 kB/s)                                                                                                                   
Selecting previously unselected package libqt5help5:amd64.
(Reading database ... 199057 files and directories currently installed.)
Preparing to unpack .../0-libqt5help5_5.10.1-2_amd64.deb ...
Unpacking libqt5help5:amd64 (5.10.1-2) ...
My apt sources:

Code: Select all

marek@desktop:~$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian/ buster main contrib non-free
deb-src http://deb.debian.org/debian/ buster main contrib non-free

deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free

deb http://deb.debian.org/debian-security buster/updates main
deb-src http://deb.debian.org/debian-security buster/updates main

deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian/ stretch main contrib non-free

deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free

deb http://deb.debian.org/debian-security stretch/updates main
deb-src http://deb.debian.org/debian-security stretch/updates main

deb http://ftp.debian.org/debian stretch-backports main
deb-src http://ftp.debian.org/debian stretch-backports main
Is something being left misconfigured?

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: aptitude downloads where apt, apt-get or synaptic hang

#2 Post by 4D696B65 »

not sure why it is stalling so cant help you there.

having stretch and buster in your sources.list is not good.

cupakm
Posts: 5
Joined: 2018-07-17 05:58

Re: aptitude downloads where apt, apt-get or synaptic hang

#3 Post by cupakm »

Ok, commented out stretch, but I guess that does not affect the stalls.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: aptitude downloads where apt, apt-get or synaptic hang

#4 Post by Head_on_a_Stick »

cupakm wrote:commented out stretch
That's a bit like applying a tourniquet after the patient has already died of exsanguination ;)

You need to reinstall from scratch, you have broken your system.
deadbang

CwF
Global Moderator
Global Moderator
Posts: 2681
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

Re: aptitude downloads where apt, apt-get or synaptic hang

#5 Post by CwF »

You can likely escape the reinstall. What is it, stretch or buster - not what you want, but what it thinks. Change distro or source list and make them match. Review apt logs for clues to where it's getting confused...Drop to VT1 and kill LM's DM's, xorg and the like. Fire up aptitude and explore, and remove anything broken. Then install what you need from a single repository. Then restart and proceed to re-complicate the system with synaptic...If apt logs show a clear issue you could skip all the VT safety and use synaptic directly...To be clear, something needs to be removed before you proceed.

cupakm
Posts: 5
Joined: 2018-07-17 05:58

Re: aptitude downloads where apt, apt-get or synaptic hang

#6 Post by cupakm »

Hi there. I can't simulate it any more - hangs went away. Don't know why they occurred, nor why they disappeared.
And that before I've cleaned up the buster/stretch repo mix. There also were no broken packages (at least nothing popped that error message).

Post Reply