Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

No internet

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#31 Post by Winston »

Head_on_a_Stick:
Winston wrote:

Code: Select all
169.254.0.0/16 dev eth0 scope link metric 1000


That looks strange but I don't use NetworkManager so I don't know what's normal for that.
Yes, it's strange, but apparently due to NetworkManager, per packetlife.net/blog/2008/sep/24/169-254-0-0-addresses-explained.
I would disable NM completely and try connecting manually to narrow down the source of the problem.
I spent most of the afternoon figuring out how to disable NM and configure /etc/network/interfaces using https://wiki.debian.org/NetworkConfigur ... _Interface and https://wiki.debian.org/WiFi/HowToUse. So now I have the below and it does bring up ethernet, but wireless is still not working. In addition, reboot stalls with the message "A start job is running for Raise network interfaces." for a bit more than 6 minutes, though it finally reboots. My revised interfaces file:

Code: Select all

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# my ethernet

auto eth0

allow-hotplug eth0

iface eth0 inet dhcp

iface eth0 inet6 dhcp

# my wifi device 

allow-hotplug wlp12s0.

iface wlp12s0. inet dhcp

     wireless-essid Corniche5

     wireless-mode Master

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

Code: Select all

sudo systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2020-02-26 16:05:05 EST; 36min ago
     Docs: man:NetworkManager(8)
 Main PID: 445 (code=exited, status=0/SUCCESS)

Feb 26 16:00:32 Debian NetworkManager[445]: <info>  [1582750832.1148] agent-manager: req[0x556c036619c0, :1.45/org
Feb 26 16:02:10 Debian NetworkManager[445]: <info>  [1582750930.7029] device (eth0): carrier: link connected
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.2807] caught SIGTERM, shutting down normally.
Feb 26 16:05:05 Debian systemd[1]: Stopping Network Manager...
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.3036] dhcp4 (wlp12s0): canceled DHCP transaction, 
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.3037] dhcp4 (wlp12s0): state changed bound -> done
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.3037] device (wlp12s0): DHCPv4: 480 seconds grace 
Feb 26 16:05:05 Debian NetworkManager[445]: <info>  [1582751105.3506] exiting (success)
Feb 26 16:05:05 Debian systemd[1]: NetworkManager.service: Succeeded.
Feb 26 16:05:05 Debian systemd[1]: Stopped Network Manager.

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#32 Post by Winston »

Chrisdb:
It could be an issue with the driver.
Something else you can try as root:

Code: Select all
apt-get purge broadcom-sta-dkms
apt install firmware-b43-installer


Now reboot and try again.
Purge works fine, but

Code: Select all

mike@Debian:~$ sudo apt install firmware-b43-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package firmware-b43-installer
mike@Debian:~$ sudo apt install firmware-b43-installer_019-4_all.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package firmware-b43-installer_019-4_all.deb
E: Couldn't find any package by glob 'firmware-b43-installer_019-4_all.deb'
E: Couldn't find any package by regex 'firmware-b43-installer_019-4_all.deb'
sources.list updated, probably wrong because I'm not familiar with sources. ftp.us.debian.org is the new line.

Code: Select all

cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 NETINST 20200208-12:07]/ buster main

# deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 NETINST 20200208-12:07]/ buster main

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

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

# buster-updates, previously known as 'volatile'

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

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
deb http://deb.debian.org/debian buster-backports main contrib non-free
# deb-src http://deb.debian.org/debian buster-backports main contrib non-free
# see the sources.list(5) manual.

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#33 Post by Winston »

Chrisdb:

The link for firmware-b43-installer_019-4_all.deb came from following the directories at https://packages.debian.org/jessie/all/ ... r/download

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#34 Post by Winston »

Chrisdb - Update

Found some more links to put in /etc/apt/sources.link, and sudo apt install firmware-b43-installer worked.

BUT now reboot stalls on a line "A stop job is running for Raise network interfaces" for a bit more than 6 minutes before reboot completes.

Now on ping 8.8.8.8 without the ethernet connection, I get

Code: Select all

From 192.168.1.14 icmp seq=10 Destination Host Unreachable
which means the default gateway is misconfigured
The hostname command gives 2 different answers, but resolv.conf is still correct

Code: Select all

mike@Debian:~$ hostname -i
127.0.1.1
mike@Debian:~$ hostname -I
192.168.1.14               
mike@Debian:~$ cat /etc/resolv.conf
nameserver 192.168.1.1
192.168.1.14 is the address of the laptop itself.

arp now has 3 addresses, the gateway and two of my network printers with fixed addresses

Code: Select all

mike@Debian:~$ cat /proc/net/arp
IP address       HW type     Flags       HW address            Mask     Device
192.168.1.51     0x1         0x2         50:5b:c2:2a:a8:b5     *        eth0
192.168.1.1      0x1         0x2         9c:3d:cf:ba:88:f0       *        eth0
192.168.1.50     0x1         0x2         b0:ea:bc:30:d4:21     *        eth0
The broadcom blacklist file no longer exists

Code: Select all

mike@Debian:/etc/modprobe.d$ ls
dkms.conf
ip now shows wireless as wlan0 instead of wlp12s0

Code: Select all

mike@Debian:/etc/modprobe.d$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
    link/ether 00:1d:09:cf:f2:51 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.14/24 brd 192.168.1.255 scope global dynamic eth0
       valid_lft 82371sec preferred_lft 82371sec
    inet6 fe80::21d:9ff:fecf:f251/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
    link/ether 00:1f:3a:a1:9d:42 brd ff:ff:ff:ff:ff:ff
The broadcom-sta-dkms.conf blacklist file is gone

Code: Select all

mike@Debian:/etc/modprobe.d$ ls
dkms.conf
So I'm thinking I should re-install broadcom-sta-dkms and reset things as they were before it was removed. Do you agree?

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#35 Post by Chrisdb »

Winston wrote:sudo apt install firmware-b43-installer_019-4_all.deb
This is not the way to install packages on Debian
see: https://wiki.debian.org/DebianPackageManagement

you're missing the non-free repo in your sources. Take a look at the second example from the following link:
https://wiki.debian.org/SourcesList#Exa ... urces.list
To add backports, use the third example
Winston wrote:BUT now reboot stalls on a line "A stop job is running for Raise network interfaces"
Did you deactivate NetworkManager?

Code: Select all

systemctl disable NetworkManager
Also, what does your final 'interface' file look like?

Did you configure wpa_supplicant?
https://wiki.debian.org/WiFi/HowToUse#wpa_supplicant

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#36 Post by Head_on_a_Stick »

Winston wrote:

Code: Select all

allow-hotplug wlp12s0.

iface wlp12s0. inet dhcp

     wireless-essid Corniche5

     wireless-mode Master
Why have you followed the "wi-fi hotspot" instructions? :?

Try https://wiki.debian.org/WiFi/HowToUse#W ... d_WPA2-PSK instead, the first bit should provide some diagnostic information if it doesn't work.

EDIT: and there shouldn't be a full-stop after the interface name, not sure why you've added that. It certainly doesn't appear in the guide.
deadbang

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#37 Post by Winston »

Chrisdb and Head:
This is not the way to install packages on Debian
see: https://wiki.debian.org/DebianPackageManagement

you're missing the non-free repo in your sources. Take a look at the second example from the following link:
https://wiki.debian.org/SourcesList#Exa ... urces.list
To add backports, use the third example
OK, got that fixed and properly installed apt install firmware-b43-installer and broadcom-sta-dkms
Did you deactivate NetworkManager?
Yes

Code: Select all

sudo systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service;
disabled; vendor preset: enabled)
   Active: inactive (dead)
Also, what does your final 'interface' file look like?

Code: Select all

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# my ethernet

auto eth0
allow-hotplug eth0

iface eth0 inet dhcp

iface eth0 inet6 dhcp

# my wifi device

allow-hotplug wlp12s0

iface wlp12s0 inet dhcp

     wireless-essid Corniche5

     wireless-mode infrastructure

#source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
Yes, created (it didn't exist) and configured as below and rebooted, but still no wireless internet on reboot, just annoying stop and start delays.

Code: Select all

mike@Debian:/etc/systemd/system$ cat wpa_supplicant.service
[Unit]
Description=WPA supplicant
Before=network.target
After=dbus.service
Wants=network.target

[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
ExecStart=/sbin/wpa_supplicant -u -s -c /etc/wpa_supplicant.conf -i
wlp12s0

[Install]
WantedBy=multi-user.target
#Alias=dbus-fi.w1.wpa_supplicant1.service

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#38 Post by Chrisdb »

After installing the new driver, your interface was renamed to 'wlan0'.

You should change your configs accordingly

Also for wpa_supplicant you should not have to define a service yourself.
Take a look at the link HoaS provided. You probably use WPA-PSK...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#39 Post by Head_on_a_Stick »

Winston wrote:
Yes, created (it didn't exist) and configured as below and rebooted
There is already /lib/systemd/system/wpa_supplicant.service (and several others) so delete your file and disable it.

This thread is getting really silly now so let's start from scratch and I'll spoon-feed you commands to try. You obviously can't follow the linked guides for whatever reason.

So first please provide a list of enabled services:

Code: Select all

systemctl list-unit-files --state=enabled
And we'll take it from there.

Please don't try anything else unless we specifically tell you to or this will just go on forever.
deadbang

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#40 Post by Winston »

Code: Select all

systemctl list-unit-files --state=enabled
UNIT FILE                                  STATE 
cups.path                                  enabled
accounts-daemon.service                    enabled
anacron.service                            enabled
apparmor.service                           enabled
autovt@.service                            enabled
avahi-daemon.service                       enabled
bluetooth.service                          enabled
console-setup.service                      enabled
cron.service                               enabled
cups-browsed.service                       enabled
cups.service                               enabled
dbus-fi.w1.wpa_supplicant1.service         enabled
dbus-org.bluez.service                     enabled
dbus-org.freedesktop.Avahi.service         enabled
dbus-org.freedesktop.ModemManager1.service enabled
dbus-org.freedesktop.timesync1.service     enabled
getty@.service                             enabled
keyboard-setup.service                     enabled
ModemManager.service                       enabled
networking.service                         enabled
pppd-dns.service                           enabled
rsyslog.service                            enabled

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#41 Post by Head_on_a_Stick »

Okay so let's stop networking.service (which runs ifupdown and is controlled via /etc/network/interfaces):

Code: Select all

# systemctl stop networking
Then create a configuration file for wpa_supplicant:

Code: Select all

# wpa_passphrase 'ssid' 'password' > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
^ Replace ssid with the name of your access point and replace password with the actual password.

Now try associating with the access point:

Code: Select all

# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
And then assign some addresses:

Code: Select all

# dhclient wlan0
You should now be connected via wireless. If any steps fail then please post the error messages in full (along with the command that preceded them).
deadbang

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#42 Post by Winston »

My laptop can't find this command

Code: Select all

root@Debian:/home/mike# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
bash: wpa_supplicant: command not found
Also, my wireless name has been wlp12s0 and not wlan0. Currently it's not running

Code: Select all

/sbin/iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.


Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#43 Post by Chrisdb »

First install 'wpa_supplicant':

Code: Select all

# apt install wpasupplicant
Next what is the name of your wireless interface now:

Code: Select all

ip addr

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#44 Post by Winston »

chrisd:

wpasupplicant is installed, I just can't find its path to use it.

Code: Select all

mike@Debian:~$ sudo apt install wpasupplicant
[sudo] password for mike:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
wpasupplicant is already the newest version (2:2.7+git20190128+0c1e29f-6+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#45 Post by Head_on_a_Stick »

Winston wrote:I just can't find its path to use it
http://forums.debian.net/viewtopic.php?f=16&t=142973

tl;dr:

Code: Select all

/sbin/wpa_supplicant
deadbang

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#46 Post by Winston »

Almost worked.

Code: Select all

root@Debian:/home/mike# wpa_passphrase myssid mypassword >
/etc/wpa_supplicant/wpa_supplicant-wlp12s0.conf

root@Debian:/etc/wpa_supplicant# /sbin/wpa_supplicant -B -i wlp12s0 -c /etc/wpa_supplicant/wpa_supplicant-wlp12s0.conf
Successfully initialized wpa_supplicant
Could not read interface wlp12s0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlp12s0 disabled_11b_rates=0
Could not read interface wlp12s0 flags: No such device
wlp12s0: Failed to initialize driver interface
Is the failure because wireless networking isn't running?

The .conf file:

Code: Select all

root@Debian:/etc/wpa_supplicant# cat wpa_supplicant-wlp12s0.conf
network={
        ssid="myssid"
        #psk="mypassword"
        psk=long string
}

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#47 Post by Head_on_a_Stick »

Okay so find the correct interface name:

Code: Select all

ip link
If there is no wireless interface then check if your kernel drivers are loaded:

Code: Select all

lspci -k | grep -iA2 net
deadbang

Winston
Posts: 27
Joined: 2020-02-22 03:08

Re: No internet

#48 Post by Winston »

Code: Select all

root@Debian:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 00:1d:09:cf:f2:51 brd ff:ff:ff:ff:ff:ff
root@Debian:~# lspci -k | grep -iA2 net
03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM4401-B0 100Base-TX (rev 02)
	Subsystem: Dell BCM4401-B0 100Base-TX
	Kernel driver in use: b44
--
0c:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4321 802.11a/b/g/n (rev 03)
	Subsystem: Dell Wireless 1500 Draft 802.11n WLAN Mini-card
	Kernel driver in use: b43-pci-bridge

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: No internet

#49 Post by Head_on_a_Stick »

So what happened to your wireless interface? You had a wlan0 last time we checked and a wlp12s0 earlier on in the thread. Your wireless card no longer has the wl driver, did you remove that or something?

I'm getting bored of this thread tbh, Broadcom is always a bastard under GNU/Linux.
deadbang

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: No internet

#50 Post by Chrisdb »

Head_on_a_Stick wrote:So what happened to your wireless interface? You had a wlan0 last time we checked and a wlp12s0 earlier on in the thread. Your wireless card no longer has the wl driver, did you remove that or something?

I'm getting bored of this thread tbh, Broadcom is always a bastard under GNU/Linux.
I told him to remove the broadcom-sta driver since it (wl) blacklisted his ethernet 'b44'. Either he would have to use his ethernet or wifi, but both would be a problem. According to the wiki his BCM4321 also is covered by the "firmware-b43-installer" package. And indeed this listed the 'wlan0' interface earlier. But for some reason now he's got no wireless interface anymore... :?

Post Reply