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.
Opening the Ubuntu Software application prompts it becomes stuck while saying "Software catalog is being downloaded".
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.
sudo apt update
andsudo apt upgrade
sudo apt update
again. You need this to run successfully to get updated package lists in order to make changes to your software. The other possible issue is that you also have broken/orphaned packages. You should follow the advice and clean those up withsudo apt autoremove
, before installing new software.sudo apt autoremove
does indeed remove a couple of packages, but the updater reproduces the same "stuck" issue..deb
packages, build software from source, or install software in any other way than through the package manager AND after successfully getting updated package lists?)