sudo apt-get install linux-headers-$(uname -r)
Возвраты:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-4.10.0-42-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-4.10.0-42-generic' has no installation candidate
Я подозреваю, что это могло бы быть проблемой позади неудавшейся установки новых драйверов Nvidia.
Какие-либо идеи, как решить?
Некоторые, возможно, полезная информация:
uname-r
4.10.0-42-generic
dpkg-запросите-s заголовки Linux - $ (uname-r)
dpkg-query: package 'linux-headers-4.10.0-42-generic' is not installed and no information is available
sudo способный список - установленный | grep заголовки
libxmu-headers/artful,artful,now 2:1.1.2-2 all [installed,automatic]
linux-headers-4.13.0-41/artful-updates,artful-updates,artful-security,artful-security,now 4.13.0-41.46 all [installed,automatic]
linux-headers-4.13.0-41-generic/artful-updates,artful-security,now 4.13.0-41.46 amd64 [installed,automatic]
linux-headers-4.13.0-43/artful-updates,artful-updates,artful-security,artful-security,now 4.13.0-43.48 all [installed,automatic]
linux-headers-4.13.0-43-generic/artful-updates,artful-security,now 4.13.0-43.48 amd64 [installed,automatic]
linux-headers-generic/artful-updates,artful-security,now 4.13.0.43.46 amd64 [installed]
Error: Could not find linux-headers- ubuntu 18.04 virtual machine
Я дал эти команды после чтения, многие приближаются к этой ошибке после: sudo apt-get install linux-headers-server
uname -r
sudo apt-get list | grep headers
sudo apt-get install linux-headers-generic
Команда дала мне универсальный, который был установлен, uname
и право linux-headers
был установлен. Gurls это работает!