LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   new Debian 10.4 installation - no internet, stuck on boot because of nvidia (https://www.linuxquestions.org/questions/linux-newbie-8/new-debian-10-4-installation-no-internet-stuck-on-boot-because-of-nvidia-4175675728/)

shuv1t 05-22-2020 07:18 PM

new Debian 10.4 installation - no internet, stuck on boot because of nvidia
 
It's my first time installing linux, everything done from bootable USB stick with debian-10.4.0-amd64-xfce-CD-1 on it. I had to go for the non network version because my only connectivity is USB adapter WiFi. This led me to the problem I'm stuck on which is that I have to install non-free nvidia drivers to get Debian to run, or at least that's my understanding of "nouveau unknown chipset (166000a1)" and "failed to start light display manager" errors. However to get this to run I need to be able to install linux headers and that either requires an internet connection or access to packages on the ISO. To get my WiFi to play I also need the same thing. This is where I am stuck.

I have tried mounting my USB stick to ~/UsbStick and then added "deb [trusted=yes] file:/root/UsbStick buster main contrib" to my /etc/apt/sources.list - then running apt-get update with results showing in this picture: https://imgur.com/a/hmR3b6S

I also tried "apt-cdrom --cdrom /root/UsbStick add" to see if I maybe could get the system to buy the usb stick as a cdrom and then list it in sources.list for me, but that also resulted in errors.

UPDATE: After installing nvidia drivers I can now boot into desktop. However my WiFi won't connect. Adding following posts to this to make it easier to read #8:

Ran into an issue when trying to connect to my WiFi. First of all after installing the drivers the device shows up as "wlx1831bf56cb6f" in iwconfig. A bit strange but I don't know enough about this to deem it as broken. On we go.

Code:

ip link show wlx1831bf56cb6f
3: wlx1831bf56cb6f: <BROADCAST, MULTICAST> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
  link/ether [mac address here] brd ff:ff:ff:ff:ff:ff

ip link set wlx1831bf56cb6f up
3: wlx1831bf56cb6f: <NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
  [same as above]

the "state DOWN" catches my eye but I don't know. I create a wpa_supplicant.conf with the correct SSID and passkey, and load it up with

Code:

wpa_supplicant -B -i wlx1831bf56cb6f -c /etc/wpa_supplicant.conf -Dnl80211,wext
Successfully initialized wpa_supplicant

iw wlx1831bf56cb6f link
Not Connected

Am I doing something wrong or is the driver installation borked?

#12

so since I'm unable to connect to my network through either wpa_supplicant and nmcli, I'm unable through the desktop shortcuts. Now the question becomes do I try to purge the drivers (if yes, how? "get purge rtl8812au"?) and install alternate ones?

edit: is there any way to rename this device to something less tedious to type out than "wlx1831bf56cb6f"? it makes configuring it horrible.

SOLVED: After installing different drivers, suggested by colorpurple21859, state turned to DORMANT and I could now see all wifi networks and connect to them.

dezix 05-23-2020 06:40 AM

Hi!

I'm not an expert and you told nothing about you hardware ...

But to avoid the most common issues related to proprietary drivers during the install process,
you may use one of the installers shipping non-free firmware : HERE
This solves kind of problems you're facing

Using a live image you even be able to check if things go well in the live session one of them comes with XFCE as seems to be you wish ;-))

Hoping that will help you
... Wellcome to Debian !

You will enjoy ... for sure!

shuv1t 05-23-2020 07:34 AM

Thank you for the reply dezix, I will look into the non-free firmware installer.

As for my issue I finally made the USB stick repo work by instead of using ~/UsbStick I used /media/usb. I don't know why this made a difference but it did. However I am now stuck with the issue that I don't have "make". As I was trying to install my WiFi drivers this came up. After successfully installing linux-headers, I tried "apt install build-essential" to get access to "make" but got the error message that build-essential couldn't be found. Is this package not part of the CD1 ISO of Debian?

The hardware that I have to manually install is ASUS USB-AC56 (rtl8812au chipset) and my RTX2070. Obviously this would be immensely much easier if I already had internet access as I could just get everything from there. However I kind of see this as a way to learn to use the system too, so it's not all bad.

dezix 05-23-2020 08:17 AM

Quote:

Obviously this would be immensely much easier if I already had internet access as I could just get everything from there....
I'm not so sure about that,
I've some times encountered difficulties with missing firmware during the install with NetInstall and I'd never success to provide it at this point.

For that reason I use now unofficial NetInstall with non-free firmwares,
and it goes pretty better.

But, as said before, I'm no expert at all.

As one has to use a non-free equipment,
non-free installer at the beginning or to add non-free later doesn't change the non-free final state.

So I choose the easy way.

beachboy2 05-23-2020 08:46 AM

shuv1t,

You may only need to use apt-offline to install build-essential:
https://www.ostechnix.com/fully-upda...based-systems/

apt-offline download for Linux (deb):

https://pkgs.org/download/apt-offline

Failing that, start again and edit your sources.list:

Code:

sudo nano /etc/apt/sources.list
with the following lines:

Code:

deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main

deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main

Then:

Code:

sudo apt update
sudo apt upgrade
sudo reboot

Next, install the Realtek rtl8821au driver:

Code:

sudo apt-get install linux-headers-$(uname -r) build-essential git
  git clone https://github.com/scrivy/rtl8812AU_8821AU_linux.git
  cd rtl8812AU_8821AU_linux
  make
  sudo make install
  sudo modprobe rtl8812au

Good luck.

shuv1t 05-23-2020 09:14 AM

Quote:

Originally Posted by beachboy2 (Post 6126317)
Next, install the Realtek rtl8821au driver:

Code:

sudo apt-get install linux-headers-$(uname -r) build-essential git
  git clone https://github.com/scrivy/rtl8812AU_8821AU_linux.git
  cd rtl8812AU_8821AU_linux
  make
  sudo make install
  sudo modprobe rtl8812au


Wouldn't "git clone https://github.com/scrivy/rtl8812AU_8821AU_linux.git" require you to be online?

shuv1t 05-23-2020 09:26 AM

Either way it's not a big deal as I've downloaded the git files and put on the USB stick. I can just build it from there.

I ran into the same stuck on boot when using debian-live-10.4.0-amd64-xfce+nonfree.iso - will now try and see if I have "make" so I can get to installing my drivers.

shuv1t 05-23-2020 11:01 AM

Ran into an issue when trying to connect to my WiFi. First of all after installing the drivers the device shows up as "wlx1831bf56cb6f" in iwconfig. A bit strange but I don't know enough about this to deem it as broken. On we go.

Code:

ip link show wlx1831bf56cb6f
3: wlx1831bf56cb6f: <BROADCAST, MULTICAST> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
  link/ether [mac address here] brd ff:ff:ff:ff:ff:ff

ip link set wlx1831bf56cb6f up
3: wlx1831bf56cb6f: <NO-CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
  [same as above]

the "state DOWN" catches my eye but I don't know. I create a wpa_supplicant.conf with the correct SSID and passkey, and load it up with

Code:

wpa_supplicant -B -i wlx1831bf56cb6f -c /etc/wpa_supplicant.conf -Dnl80211,wext
Successfully initialized wpa_supplicant

iw wlx1831bf56cb6f link
Not Connected

Am I doing something wrong or is the driver installation borked?

dezix 05-23-2020 11:15 AM

For the graphic card look at https://wiki.debian.org/NvidiaGraphi...#nvidia-detect

you may use nvidia-detect and nvidia-driver

Description of nvidia-driver
shows :

Quote:

See /usr/share/doc/nvidia-driver/README.txt.gz for a complete list of supported GPUs and PCI IDs.

dezix 05-23-2020 11:22 AM

xserver-xorg-video-nouveau free driver supports many Nvidia products too.

dezix 05-23-2020 11:28 AM

Your rtx 2070 is listed HERE for nvidia-driver package

shuv1t 05-23-2020 11:42 AM

Thank you for the replies, but all of those require me to be online yes? Or should I try downloading them to an USB stick and building them from there?

edit: I downloaded the driver and since it was a .run it installed by itself when I ran it from the USB stick. Yay, I can now see the GUI!

edit2: so obviously since I'm unable to connect to my network through either wpa_supplicant and nmcli, I'm unable through the desktop shortcuts. Now the question becomes do I try to purge the drivers (if yes, how? "get purge rtl8812au"?) and install alternate ones?

colorpurple21859 05-23-2020 01:54 PM

At the grub menu press e and add nomodeset to the end of the line that begins with linux. Maybe that will get you further along.

shuv1t 05-23-2020 02:11 PM

Quote:

Originally Posted by colorpurple21859 (Post 6126399)
At the grub menu press e and add nomodeset to the end of the line that begins with linux. Maybe that will get you further along.

This was one of the first things I tried when I my boot failed. Not sure if that's gonna help with my WiFi adapter though, unless I'm missing something?

colorpurple21859 05-23-2020 03:29 PM

Quote:

Not sure if that's gonna help with my WiFi adapter though, unless I'm missing something?
No, that only helps sometimes with video problems.
You will have to build the driver for you wireless adapter which is troublesome if you don't have an internet connection to begin with. If you can purchase a usb wifi adapter that will work with linux straight up would be your best bet.
Did you successfully run the make and 'make install' commands for your wifi adapter driver?


All times are GMT -5. The time now is 12:14 PM.