I have on dual boot Windows 10 and Debian 9.4.
I try to install Virtualbox on Debian 9.4 because i need it to use Vagrant.
When i tried to use it, they said it needs linux-headers.
After i installed it everything works, but when i want to restart my computer screen freezes after a moment, and i can't go on debian anymore.
I tried to install different versions of Virtualbox, (like 5.2 or 5.1 with extensions pack) and another vm but it seems linux-headers is mandatory to use a vm.
Every time i have to purge linux-headers and install another kernel if i want to boot again. Reinstalling the kernel don't work.
Code: Select all
sudo apt install --reinstall linux-image-4.9.0-6-amd64
Here's a list of kernel i tried :
-linux-image-amd64 (to got the latest version)
-linux-image-4.9.0-4-amd64
-linux-image-4.9.0-5-amd64
-linux-image-4.9.0-6-amd64
And here's some examples of what i did (in recovery mode) :
Code: Select all
sudo aptitude update
sudo aptitude install --reinstall build-essential dkms
/sbin/shutdown -r now
Code: Select all
sudo apt-get install --reinstall linux-headers-amd64
sudo update-initramfs -u
sudo update-grub
/sbin/shutdown -r now
My sources.list
Code: Select all
# FR
deb http://ftp.fr.debian.org/debian/ stretch main contrib non-free
# deb-src http://ftp.fr.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/debian-security stretch/updates main contrib non-free
# deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free
# stretch-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ stretch-updates main contrib non-free
# deb-src http://ftp.fr.debian.org/debian/ stretch-updates main contrib non-free
# Debian stretch depot principal
deb http://deb.debian.org/debian/ stretch main contrib non-free
# deb-src http://deb.debian.org/debian/ stretch main contrib non-free
#Autres sources
deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main
deb http://https://ftp.igh.cnrs.fr/pub/CRAN//bin/linux/debian stretch-cran34/
deb http://qgis.org/debian-ltr stretch main
# deb-src http://qgis.org/debian-ltr stretch main
#VirtualBox
deb https://download.virtualbox.org/virtualbox/debian stretch contrib
deb http://download.virtualbox.org/virtualbox/debian stretch contrib
# deb-src http://download.virtualbox.org/virtualbox/debian stretch contrib