- Как удалить драйвер Nvidia в Ubuntu
- Удаление драйвера Nvidia в Ubuntu
- Шаг 1. Переключение к консоль
- Шаг 2. Очистка конфигурации
- Шаг 3. Удаление драйвера
- Шаг 4. Переустановка nouveau
- Шаг 5. Обновление конфигурации
- Шаг 6. Готово
- Удаление драйвера, полученного из официального сайта
- Выводы
- Howto: Linux Add or Remove a Linux Kernel Modules / Drivers
- Task: Add a Module (driver) Called foo
- Find out info about loaded module
- Task: List all loaded modules
- Task: Remove a module called foo
- Thread: How do i remove wireless drivers?
- How do i remove wireless drivers?
- Re: How do i remove wireless drivers?
- Re: How do i remove wireless drivers?
- Re: How do i remove wireless drivers?
- Re: How do i remove wireless drivers?
- Re: How do i remove wireless drivers?
- Re: How do i remove wireless drivers?
Как удалить драйвер Nvidia в Ubuntu
Для видеокарты Nvidia в Linux выпускается два вида драйверов — открытые nouveau, с открытым исходным кодом, который разрабатывается сообществом и закрытый проприетарный драйвер Nvidia, от производителя.
Первый встроен в ядро и с ним никогда не возникает проблем, второй же устанавливается в систему ручным способом или с помощью пакетного менеджера. Он не всегда совместим с новыми версиями ядра, поэтому иногда после обновления драйвера или ядра до не поддерживаемой версии мы не сможем загрузиться в графический интерфейс во время следующей перезагрузки. Многие пользователи, которые еще не знают о такой особенности, часто сталкиваются с этой проблемой.
Чтобы исправить эту ошибку нужно просто использовать совместимую версию ядра или удалить проприетарный драйвер, так чтобы использовался nouveau. В этой инструкции мы рассмотрим как правильно выполняется удаление драйверов nvidia в Ubuntu.
Удаление драйвера Nvidia в Ubuntu
Удалить драйвер можно несколькими способами, все зависит от того каким образом выполнялась установка. Если вы устанавливали драйвер с помощью пакетного менеджера, то удалять его нужно тоже с его помощью. Для этого просто выполните все описанные ниже шаги.
Шаг 1. Переключение к консоль
Если вы видите перед собой черный экран, то сначала нужно переключиться в первую текстовую консоль TTY1, чтобы иметь возможность выполнять команды. Для этого нажмите одновременно Ctrl+Alt+F1, затем введите логин и пароль.
Шаг 2. Очистка конфигурации
С помощью утилиты nvidia-settings удалите из системы всю оставшуюся конфигурацию:
sudo nvidia-settings —uninstall
Шаг 3. Удаление драйвера
Дальше можно полностью удалить драйвер. Чтобы выполнить полное удаление драйверов видеокарты Nvidia, сначала найдите все её пакеты в системе:
dpkg -l | grep -i nvidia
Теперь удалите их все, кроме пакета nvidia-common. Просто перечислите их в этой команде, разделяя имена пакетов пробелами:
sudo apt remove —purge пакет1 пакет2
sudo apt remove —purge nvidia-current
Мы могли бы просто написать nvidia-*, но тогда будет удален пакет nvidia-common, а от него зависит ubuntu-desktop. Это значит, что вы снесете все программы окружения рабочего стола. Конечно, его можно потом установить, но это потеря времени.
Шаг 4. Переустановка nouveau
Затем переустановите пакеты nouveau:
sudo apt remove —purge xserver-xorg-video-nouveau xserver-xorg-video-nv
sudo apt-get install xserver-xorg-video-nouveau
sudo apt install —reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
Шаг 5. Обновление конфигурации
Осталось обновить файлы настройки xorg, для этого выполните:
sudo dpkg-reconfigure xserver-xorg
Шаг 6. Готово
После выполнения всех этих действий, удаление драйвера Nvidia в Ubuntu будет завершено. Вы можете перезагрузить свой компьютер и полноценно использовать систему.
Удаление драйвера, полученного из официального сайта
Удалить драйвер Nvidia Ubuntu если драйвер был получен из официального сайта не так сложно, как в предыдущем варианте. Но тут вам нужен сам файл установщика. Перейдите в папку с файлом установщика и выполните его с опцией —uninstall, например:
Если сейчас у вас нет установщика, вы можете скачать его с помощью такой команды, для x86_64:
Затем нужно дать права на выполнение:
chmod u+x ./NVIDIA-Linux-x86_64-445.87.run
После выполнения первой команды удаление драйверов Nvidia в Ubuntu будет полностью завершено и вы сможете перезагрузить компьютер чтобы работать в вашей системе.
Выводы
Проблемы с драйверами могут возникнуть у всех и важно уметь их решать. Из этой статьи вы узнали как удалить драйвер Nvidia Ubuntu и я надеюсь, что это поможет вам в сложной ситуации.
Источник
Howto: Linux Add or Remove a Linux Kernel Modules / Drivers
=> Under MS-Windows you use term device driver for modules.
=> Under Linux you use term modules for device drivers.
Tutorial details | |
---|---|
Difficulty level | Advanced |
Root privileges | Yes |
Requirements | modprobe/lsmod/modinfo utilities |
Est. reading time | N/A |
=> The Linux kernel has a modular design.
=> At boot time, only a minimal resident kernel is loaded into memory.
=> If you add new hardware you need to add driver i.e. modules.
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
=> The modprobe command intelligently adds or removes a module from the Linux kernel
=> Usually, all Linux kernel modules (drivers) are stored in the module directory located that /lib/modules/$(uname -r) directory. To see current modules, type:
$ ls /lib/modules/$(uname -r)
Output:
Use the following command to list all drivers for various devices:
$ ls /lib/modules/$(uname -r)/kernel/drivers/
Sample outputs:
Fig.01: Device drivers on my Linux based system
Task: Add a Module (driver) Called foo
Type the following command as root user:
# modprobe foo
In this example, I am loading a module called i8k, enter:
# modprobe -v i8k
Sample outputs:
Find out info about loaded module
You need to use the modinfo command to see information about a Linux Kernel module. The syntax is:
# modinfo -v
# modinfo i8k
Sample outputs:
Fig.02: Displaying information about a Linux Kernel module called i8k
Task: List all loaded modules
Use the lsmod command to show the status of modules in the Linux Kernel:
# lsmod
Sample outputs:
Task: Remove a module called foo
Pass the -r option to modprobe command to remove a module, type:
# modprobe -r foo
You can also use the rmmod command, which is simple program to remove a module from the Linux Kernel:
# rmmod foo
Recommended readings
- man pages – modinfo, lsmod, insmod, and modprobe
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Category | List of Unix and Linux commands |
---|---|
Documentation | help • mandb • man • pinfo |
Disk space analyzers | df • duf • ncdu • pydf |
File Management | cat • cp • less • mkdir • more • tree |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Linux Desktop Apps | Skype • Spotify • VLC 3 |
Modern utilities | bat • exa |
Network Utilities | NetHogs • dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • glances • gtop • jobs • killall • kill • pidof • pstree • pwdx • time • vtop |
Searching | ag • grep • whereis • which |
Shell builtins | compgen • echo • printf |
Text processing | cut • rev |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Comments on this entry are closed.
when the system is rebooted the module inside the kernel will not be present.But i want the modules to be seen permenently.what should i do.
Thanks alot for this, very helpful for teh newbz.
Thank’s first for the helpfull command , where can i get the new modules other then my OS,
how to build linux kernel module with new device driver module during build
Thanks a lot for the info…:) 🙂
Hi there…
I am trying to remove TCP IP from a linux kernel, and want to recompile the LINUX kernel. But being a novice with the administrations of the linux (UBUNTU 10.4), I know a little about it. Agter recompilation can I again design mu own TCPIP using the C language code?
Guys please help me out…waiting for the reply .
Regards…
Thanks for this very short but very clear information. That helps me to understand the concept (of add or remove module on Linux) very much.
One question remain: how do we check to know what modules are available to add on a existing system?
Thank you in advance!
One question remain: how do we check to know what modules are available to add on a existing system?
cd to /lib/modules/$(uname -r) directory and you can see the list of available modules (run as root):
The following will list all drives
To find out more info about a module called foo:
Hope this helps!
Hi
thanks for your comments, I am trying to write a printer driver for linux, what should I do?
Please help me on this task.
Does anyone knows step by step guide for how to install ip_conntrack support into kernel Linux linux 2.6.35.14-106.fc14.i686 #1 SMP Wed Nov 23 13:57:33 UTC 2011 i686 i686 i386 GNU/Linux
I am unable to remove the following modules after issuing the commands.
$ rmmod usbhid and
$rmmod hid..
After issuing the commands the modules are not shown in “lsmod” but as soon as a device is added they again get loaded.
thanks, very clear article.
Hello there. I have an old computer Celeron, 128MB RAM and 28MB of VGA. What I want to do is keep the drivers that are needed for my system. Like if I use the Realtek Chipset for Network Card why should the Atheros driver be present on the system? Is there any way to accomplish this task?
Regards.
I have a serious problem, my Linux does not have these comands:
apt-get
uname
modprobe
mknod
man
…etc… and also has not a lot of typical commands
And there is no /dev/loop*
And mount -o loop blablabla bleble say incorrect option, does not undertand loop.
Of course, all problem seem that Kernel has no loop device support.
How can i fix it?
Please have in mind Kernel is on ROM (a chip not writteable), it is not a flasheable chip, i can not modify it on any way, … read only memory chip!!
I wish if it could be possible to add loop device support at run time as a module…
But it does not have modprobe command… neither a lot of clasic Linux commands… so i got to fail.
Need some help, i am not an expert.
Step 1: try to create /dev/loop0 (it does not exists) with mknod but mknod command not found
Try to add such coomands with apt-get, wget, etc… all says such commands not exists
I am getting mad…
Please note it is an ARM processor based, and Kernel is on a ReadOnly chip not flashable.
Thanks in advance for any help… i am getting really mad…
If I were you, rather than finding Linux Kernel modulos to have “uname”, “modprobe”, “man” recovered (maybe you have played around some kernel rebuild and screwed up some basic binaries?), I will re-install the entire Linux OS from scratch. You can download CentOS (Red Hat) or SUSE, Fedora or whatever Linux to have all these basic utilities included.
trying to add slcan module to kernel 2.6.32-504.30.3.el6.i686 but having problems with the following response … question is how to get it added
FATAL: Module slcan not found.
Thank you so much…
i want to know how many mouldes in linus and brief explanation of them.i will glad if my question is been answered.
hi all,
iam unable to remove nvme module in primary drive(ssd) by using
following comment:
rmmod nvme
Источник
Thread: How do i remove wireless drivers?
Thread Tools
Display
How do i remove wireless drivers?
I would like to install a windows driver with ndisgtk, and I have the .inf. Here it says that I first need to make sure that I don’t have any wireless drivers already installed. How do I do that? I’ve spend about an hour looking here, and elsewhere, but I can’t find anything.
Re: How do i remove wireless drivers?
You remove them by blacklisting them; first you have to know what they are. If you have a native driver loaded, why isn’t it working? Maybe we can fix it.
Please tell us what card you have. If built-in, post:
Re: How do i remove wireless drivers?
Remove module and then blacklist them from beeing loaded.
Try sudo rmmod or perhaps it is sudo delmod
Blacklist located in /etc/modprobe.d/blacklist.conf
Re: How do i remove wireless drivers?
I’m having problems with my university’s network. After connecting to the wireless, I get internet for a bit (5 seconds to 15 minutes), but after that my browser will hang a «Sending request . . . «
I wanted to try the Windows driver, because I’m not having any problems in Win7 on my other partition.
lspci -nn gives me:
Thanks for the help.
Re: How do i remove wireless drivers?
Re: How do i remove wireless drivers?
You should be all set.
Re: How do i remove wireless drivers?
Unfortunately for me, I got nothing.
After running «rmmod -f ath9k» I got No such file or directory.
Assuming that I had removed it in other attempts, I did ndisgtk and tried to install the .inf wireless driver, restarted, but wireless is now missing from the network manager taskbar icon (as well as a wireless enable toggle). I then removed the .inf driver with ndisgtk, and rebooted, again with no wireless.
Then, I tried the suggested thread. Terminal didn’t give me any errors, but after a reboot I still don’t have wireless.
Источник