Ubuntu Version:
22.04 LTS
Desktop Environment (if applicable):
KDE Plasma
Problem Description:
Following a recent mishap, I’ve downloaded ubuntustudio-24.04.3-dvd-amd64.iso, flashed it onto a usb stick using Rufus in Windows11. Tested it on my linux box and then installed it ok.
This hardware has used every UbuntuStudio LTS since 14.04 without problems.
I have my home file on a separate hard disk, sda, and the system on sdb with UEFI boot. I edited the fstab file to mount my sda on /home, and it is working correctly, but I have many applications to reinstall.
I tried to install Synaptic Package Manager and this failed with a listing of a whole load of warnings and errors. The warnings concern various items being configured multiple times in /etc/apt/sources.list.d/dvd.list: and /etc/apt/sources.list.d/ubuntusources ….
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target Packages (universe/binary-all/Packages) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11 (universe/dep11/Components-all.yml) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11-icons-small (universe/dep11/icons-48x48.tar) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11-icons-hidpi (universe/dep11/icons-64x64@2.tar) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11-icons-large (universe/dep11/icons-128x128.tar) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target CNF (universe/cnf/Commands-amd64) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target CNF (universe/cnf/Commands-all) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11-icons-hidpi (multiverse/dep11/icons-64x64@2.tar) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target DEP-11-icons-large (multiverse/dep11/icons-128x128.tar) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target CNF (multiverse/cnf/Commands-amd64) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in
/etc/apt/sources.list.d/dvd.list:3 and
/etc/apt/sources.list.d/ubuntu.sources:2E: Unable to parse package file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_universe_binary-amd64_Packages (1)
E: Unable to parse package file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_universe_i18n_Translation-en (1)
E: Unable to parse package file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_restricted_i18n_Translation-en (1)
E: Unable to parse package file /var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_noble_universe_binary-amd64_Packages (1)
E: Unable to parse package file /var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_noble_universe_i18n_Translation-en (1)
W: To correct these problems, you may want to run apt update
E: The package cache file is corrupted
I tried running apt update and got this result:
Reading package lists… Error!
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
E: Unable to parse package file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_universe_binary-amd64_Packages (1)
E: Unable to parse package file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_universe_i18n_Translation-en (1)
E: Unable to parse package file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_noble-security_restricted_i18n_Translation-en (1)
E: Unable to parse package file /var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_noble_universe_binary-amd64_Packages (1)
E: Unable to parse package file /var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_noble_universe_i18n_Translation-en (1)
W: To correct these problems, you may want to run apt update
E: The package cache file is corrupted
When I look in /etc/apt/sources.list.d/ I see three sub-directories: dvd.list, ubuntu.sources.list, ubuntu.sources.curtin.orig
How can I safely remove the duplications and correct the corrupted package cache file?