我正在尝试安装光盘刻录机,但没有成功...这是我尝试过的:
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
答案1
您的sources.list
文件不正确,因此您应该先修复它......
# 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