Kubuntu 12.04 : starting load fallback graphics devices [fail] - graphics

Just after booting, while Kubuntu loads its modules and checks all of it, this message appears and the loading work stops.
As a matter of fact the Kubuntu's login screen never comes and it switches automatically on the tty1 in console mode. So I only can use the ttys 1 to 6 in console mode and the tty7 still out of order.
The following procedure to re-install the NVIDIA driver did not work :
Remove the existing nvidia driver :
sudo apt-get purge nvidia-current
Upgrade to the new driver: (follow this link)
http://news.softpedia.com/news/How-to-Install-The-Latest-Nvidia-Driver-on-Ubuntu-12-04-295542.shtml
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install nvidia-current
Any idea ? Thank you very much for your time.

Fixed !
As the re-installation of the nvidia current driver version did not work I thought to install one other version.
This link shows how to install NVIDIA driver on ubuntu : BinaryDriverHowto/Nvidia
So I did exactly the same procedure as above but I replaced
nvidia-current with nvidia-319.
You can access to the possible versions list with auto-completion on :
sudo apt-get install nvidia-
It fully resolved my problem after reboot.
Afterward, I saw that the current version seems to be set on the 304 version but I don't know why precisely.

Related

VirtualBox: Kernel driver not installed (rc=-1908) | Fedora 36

After full reinstalling Fedora to version 36 I have got this error:
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On Linux, open returned ENOENT
Commands from other topics don't work:
sudo dnf reinstall kernel-devel kernel-headers dkms qt5-qtx11extras elfutils-libelf-devel zlib-devel
systemctl restart vboxdrv
sudo dnf reinstall VirtualBox-6.1
sudo /sbin/vboxconfig
What do I need to do? Thanks
Please try:
$ sudo dnf -y install #development-tools
$ sudo dnf install kernel-headers kernel-devel dkms -y
The problem maybe it is that the kernels have different versions on devel and headers. You should probably check this right before everything else.
Now if you want to create a virtual machine based on Linux, I strongly recommend you to use "KVM", it's the easiest way and it should work without any trouble.
This is related: rc-1908
you just need to install the "linux-devel" packages (worked in fedora 37)
sudo dnf install linux-devel

Trying to install Linux kernel headers but getting an error

I am trying to follow the NVIDIA Driver Installation Quickstart Guide:
https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html
The first instruction says:
The kernel headers and development packages for the currently running
kernel can be installed with:$ sudo apt-get install linux-headers-$(uname -r)
When I try this I get the error:
Unable to locate package linux-headers-4.9.140-tegra
Couldn't find any package by glob 'linux-headers-4.9.140-tegra'
Couldn't find any package by regex 'linux-headers-4.9.140-tegra'
I'm not sure how to proceed.
Your version of Ubuntu is running a tegra kernel. The headers for this kernel are not in the Ubuntu repositories (or any other repositories you may have enabled). You will probably need to these before proceeding with the driver installation.
However. NVIDIA Tegra is a small SoC (system on chip) processor AFAIK. Like a Jetson Nano or something. The instructions you linked are for NVIDIA Tesla GPUs which are data center GPUs. Again, AFAIK. Check you are following the right instructions. Also, in those instructions, look at: 'Section 1.1 - Pre-installation requirements', and this pre install checklist.
Here is a list of all the different kernel headers in the Ubuntu 20.04 repos (not the same I know). tegra is not there.
Before you can install the appropriate kernel headers, update your packages index. First use the update command.
sudo apt-get update
then run sudo apt-get install linux-headers-$(uname -r) again. If this doesn't work, try out
sudo apt-get install linux-headers-generic
which should install the right version.

Error: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver

The NVIDIA-SMI is throwing this error:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA
driver. Make sure that the latest NVIDIA driver is installed and
running
I purged NVIDIA and installed it again following steps mentioned here.
My device specs are as follows:
Server with a Tesla M40
Running on Ubuntu 16.04
Kernel version Linux 4.4.0-116-generic x86_64
Driver: nvidia-384
Can someone please help in solving the error?
The issue might due to a confirmed "bug" in 4.4.0-116 patch. I ran into the same issue with nvidia-390. If you still want to use a newer version of Nvidia-driver, I followed the instructions here and managed to solve the problem. In general, use the following steps:
If you cannot login to the desktop and fall into to the fail-loop, press ctrl + alt + F1 to login into the command line mode.
Check if the version of gcc is outdated, if so, update it: gcc --version
If the gcc version is 5+, uninstall the nvidia driver first: sudo apt-get remove nvidia-390
Purge the 4.4.0-116 kernel: sudo apt-get purge linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic linux-image-4.4.0-116-generic linux-image-extra-4.4.0-116-generic linux-signed-image-4.4.0-116-generic
Reinstall the kernel: sudo apt-get install linux-generic linux-signed-generic
Reinstall the nvidia-390: sudo apt-get install nvidia-390
Check if the problem is solved by modinfo nvidia-390 -k 4.4.0-116-generic | grep vermagic, make sure retpoline shows up this time
Reboot: sudo reboot
Hope this works for you and other people who run into the same issue. The post in the forum saved my weekend.
Note: this answer is from 2018 and works for Ubuntu 16.04, which is very much out-of-date. Don't try this on recent Ubuntu versions.
Try
Download the driver from here
sudo apt-get purge nvidia* - To remove your current installations
dpkg -i nvidia-diag-driver-local-repo-ubuntu1604_375.66-1_amd64.deb - installing what you downloaded earlier
sudo apt-get update
sudo apt-get install cuda-drivers
After this, go on and reboot your computer.
When it's up again, the nvidia-smi command should run smoothly
to download latest driver as of this answer:
sudo apt install libnvidia-compute-435 libnvidia-compute-435
sudo apt install libnvidia-gl-435 nvidia-dkms-435 nvidia-kernel-source-435
nvidia-utils-435 xserver-xorg-video-nvidia-435 libnvidia-ifr1-435
sudo apt install nvidia-driver-435
sudo reboot
and then:
nvidia-smi
If you're running this on Google Colab, just go to Runtime > Change Runtime Type > select GPU. That worked for me.

No gui after uninstalling gtk2.0 in ubuntu 16.10

I have ubuntu 16.10 version installed. I uninstalled gtk using sudo apt-get remove --purge gtk2.0. After rebooting, my whole gui is not loading, no login screen also. I can access other terminals using Ctrl+Alt+f1. How can i get my gui interface back?. Anyhelp is appreciated.thanks.
You might probably want to try this:
sudo apt-get install ubuntu-desktop^
This should install all the packages of standard Ubuntu Desktop that you've removed.
Alternatively, you can check the logs of apt /var/log/apt/history.log and install back the packages that got removed.

Launching "sudo dpkg --configure -a" restarts the pc and does not solve anything

running a OpenCV-based code on Ubuntu, I incurred in the following error:
OpenCV Error: Unspecified error (The function is not implemented.
Rebuild the library with Windows, GTK+ 2.x or Carbon support.
If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then
re-run cmake or configure script) in cvNamedWindow, file /home/opennao/src/OpenCV-2.3.1/modules/highgui/src/window.cpp, line 275
terminate called after throwing an instance of 'cv::Exception'
So I tried to install this libgtk2.0-dev by typing:
sudo apt-get install libgtk2.0-dev
but it returns the following:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."
And this is what I did. But then, during the processing of the command request, the pc restarts on its own and the problem comes again when I run my code.
For the sake of clarification, I think it's worth saying that two weeks ago an update on Ubuntu corrupted my grub to choose the OS to run (there are Ubuntu 14.04 and Windows 10 on my pc), so I restored it through minimal-bash line editing.
Now, when I run "sudo dpkg --configure -a" I see that the last printed lines before restarting refer to some information about disk images or kernels that I rembember to have handled to fix the grub. I don't know if this can be a suggestion to understand the problem.
Thank you all for your support, ask me if you need further details.

Resources