Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 7029  / 3 Years ago, thu, august 12, 2021, 1:52:15

I have just installed Ubuntu 20.4 LTS. I performed the installation without Wifi connection, as this lead to the installer becoming unresponsive. Yet without Wifi connection the installer went on just fine.


With the fresh-install, two issues have arisen.



  1. Opening the Ubuntu Software application prompts it becomes stuck while saying "Software catalog is being downloaded".



  2. When using the Software Updater, it gets stuck stating "Waiting for
    packagekitd to stop".




I tried stopping packagekitd with the following command:


systemctl stop packagekit

Then, after running the Software Updater again, it got stuck on "Downloading from security.ubuntu.com/ubuntu no.archive.ubuntu.com/ubuntu"


I am sure the "no." above comes from the fact that I am situated in Oslo.


Would anyone have any ideas for a beginner like me to look for solutions?


It seems I have to rely on the software updater in order to install programs (such as sublime-text), hence this is really stopping me from starting to use Linux at all. Any help would be appreciated.


Here is the output of sudo apt update:


Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1489 (packagekitd)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/

And the output of sudo apt upgrade:


Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libdrm2:i386 libexpat1:i386 libglapi-mesa:i386 libglvnd0:i386
libx11-xcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386
libxcb-present0:i386 libxcb-sync1:i386 libxdamage1:i386 libxfixes3:i386
libxshmfence1:i386 libxxf86vm1:i386
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
apport apport-gtk bind9-dnsutils bind9-host bind9-libs ghostscript
ghostscript-x gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 gnome-shell
gnome-shell-common libcurl3-gnutls libgs9 libgs9-common
libjavascriptcoregtk-4.0-18 libmysqlclient21 libnss3 libsane libsane-common
libsmbclient libsnmp-base libsnmp35 libssh-4 libwbclient0
libwebkit2gtk-4.0-37 libwhoopsie0 ppp python3-apport python3-problem-report
python3-software-properties samba-libs sane-utils software-properties-common
software-properties-gtk whoopsie
35 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 36,7 MB of archives.
After this operation, 175 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.ubuntu.com/ubuntu focal-security/main amd64 libssh-4 amd64 0.9.3-2ubuntu2.1 [170 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.2 [231 kB]

At this point the process is stuck showing 1% [2 libcurl3-gnutls 0 B/231 kB 0%]




Update:


I have now learned I can kill the process locking up sudo-update, and I have tried changing servers (in Software & Updates).


When I run sudo apt update, the following is produced


Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease    
Get:2 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98,3 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB]
13% [5 Packages 0 B/718 kB 0%]

..the updater gets stuck.


More From » apt

 Answers
7

I found the answer. My problem was that I had an UTM firewall interrupting the connection to the security.ubuntu.com and archive.ubuntu.com (regardless of the server mirror). Using another Wifi network completely resolved the issue.


Thanks for the help.


[#2780] Thursday, August 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rontablis

Total Points: 293
Total Questions: 123
Total Answers: 104

Location: Austria
Member since Mon, Mar 1, 2021
3 Years ago
;