Nvidia drivers are marked as "auto" at installation and thus removed by `apt autoremove`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Incomplete
|
Critical
|
Unassigned | ||
Jammy |
Incomplete
|
Critical
|
Unassigned | ||
ubuntu-release-upgrader (Ubuntu) |
Confirmed
|
Critical
|
Unassigned | ||
Jammy |
Confirmed
|
Critical
|
Unassigned |
Bug Description
When installing Ubuntu 20.04 LTS and choosing the proprietary Nvidia drivers, they seem to be marked as "auto". Consequently, any subsequent `apt` commands recommend to call `apt autoremove`:
```
root@ubuntu-
Reading package lists... Done
Building dependency tree
Reading state information... Done
htop is already the newest version (2.2.0-2build1).
The following packages were automatically installed and are no longer required:
chromium-
libdrm-intel1:i386 libdrm-
libexpat1:i386 libffi7:i386 libglvnd0:i386 libgstreamer-
libnvidia-cfg1-390 libnvidia-
libnvidia-
libnvidia-gl-390 libnvidia-
libstdc++6:i386 libva-wayland2 libvulkan1:i386 libwayland-
libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386
libxcb-
libxcb1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxnvctrl0 libxshmfence1:i386
libxxf86vm1:i386 mesa-vulkan-
nvidia-prime nvidia-settings nvidia-utils-390 screen-
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 142 not upgraded.
```
Calling `apt autoremove`, of course results in removal of drivers which are necessary for X11 to start. At the next boot attempt, the user will be presented with just a black screen and possibly some information about a successful fsck on /dev/sda2.
Workaround: Install the Nvidia package manually, for example `apt install nvidia-384` (or whichever version works best for your hardware).