0

I am trying to install a disc burner with no luck... This is what I have tried:

lena@lena:~$ sudo apt-get install brasero
[sudo] password for lena: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package linux-headers-5.3.0-62 needs to be reinstalled, but I can't find an archive for it.
lena@lena:~$ ^C
lena@lena:~$ ^C
lena@lena:~$ sudo apt-get install --reinstall linux-headers 4.4.0-98
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package linux-headers-5.3.0-62 needs to be reinstalled, but I can't find an archive for it.
lena@lena:~$ grep -r deb/etc/apt/sources.list /etc/apt/sources.list.d/
lena@lena:~$ grep -r deb /etc/apt/sources.list /etc/apt/sources.list.d/
/etc/apt/sources.list:# deb cdrom:[Ubuntu 18.04.2 LTS _Bionic Beaver_ - Release amd64 (20190210)]/ bionic main restricted
/etc/apt/sources.list:deb http://gb.archive.ubuntu.com/ubuntu/ bionic main restricted

etc etc

FedKad
  • 9,212
  • 7
  • 40
  • 79
  • This has nothing to do with a specific installation (Brasero) but with broken packages. – ChanganAuto May 16 '21 at 19:50
  • 2
    Does this answer your question? [How do I enable the "Universe" repository?](https://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository) – N0rbert May 16 '21 at 20:05
  • 1
    Make sure that you always update the list of available packages with `sudo apt update` before doing any other actions in `apt` or `apt-get` – Nmath May 16 '21 at 20:49

1 Answers1

1

Your sources.list file is not right, so you should fix that first...

# Fix your repsoitories
sudo mv /etc/apt/sources.list /etc/apt/sources.list.not_working
sudo cp /usr/share/doc/apt/examples/sources.list /etc/apt/

# Add the Universe repository
sudo apt-add-repository universe

# View the contents of sources.list (original + universe repository) 
grep -r deb /etc/apt/sources.list

# Update if necessary
sudo apt update
Enterprise
  • 12,002
  • 11
  • 60
  • 105
  • Please note that `/usr/share/doc/apt/examples/sources.list` on 18.04 LTS does not contain *universe* and *multiverse* pockets. You may need to add `sudo add-apt-repository universe ; sudo add-apt-repository multiverse` to the answer. – N0rbert May 16 '21 at 21:04