[SOLVED] installed new kernel, network gone!

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
hooly

[SOLVED] installed new kernel, network gone!

Post by hooly »

i recently heard that KDE/Plasma won't be available on Mint so i thought i'd consider making the switch from Mint 17.x with KDE to 18.3 with Cinnamon. installed 18.3, have been dual-booting between the two.
things have been going well, decided to stick with Cinnamon.
i (rashly) decided to apply all the updates available in the Update Manager which included kernel 4.13.0-43. the updates were applied without errors (that i'm aware of).
when i rebooted 18.3 I couldn't access the internet: emails dead, browsers reporting no web access, etc.
i'm relatively linux illiterate so i'm pretty much stuck and desperately looking for help.

i understand from poking around the forums that the following might be helpful:

Code: Select all

$ inxi -Fz
System:    Host: cinna18-box Kernel: 4.13.0-43-generic x86_64 (64 bit) Desktop: Cinnamon 3.6.7
           Distro: Linux Mint 18.3 Sylvia
Machine:   Mobo: ASRock model: Z97 Extreme6 Bios: American Megatrends v: P2.50 date: 10/06/2015
CPU:       Quad core Intel Core i7-4790 (-HT-MCP-) cache: 8192 KB 
           clock speeds: max: 4000 MHz 1: 1299 MHz 2: 1299 MHz 3: 1299 MHz 4: 1299 MHz 5: 1300 MHz 6: 1300 MHz
           7: 1405 MHz 8: 1313 MHz
Graphics:  Card: NVIDIA GM204 [GeForce GTX 970]
           Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: GeForce GTX 970/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 384.111
Audio:     Card-1 NVIDIA GM204 High Definition Audio Controller driver: snd_hda_intel
           Card-2 Intel 9 Series Family HD Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.13.0-43-generic
Network:   Card-1: Intel Ethernet Connection (2) I218-V driver: e1000e
           IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: enp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 4512.9GB (2.0% used) ID-1: /dev/sda model: Samsung_SSD_850 size: 512.1GB
           ID-2: /dev/sdb model: ST4000DM000 size: 4000.8GB
Partition: ID-1: / size: 344G used: 25G (8%) fs: ext4 dev: /dev/sda3
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 30.0C mobo: N/A gpu: 41C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 268 Uptime: 3 min Memory: 771.3/15986.6MB Client: Shell (bash) inxi: 2.2.35 

Code: Select all

$ sudo lshw -C network
[sudo] password for cinna18: 
  *-network               
       description: Ethernet interface
       product: Ethernet Connection (2) I218-V
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: enp0s25
       version: 00
       serial: d0:50:99:29:67:00
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.1-4 ip=192.168.0.2 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:42 memory:ef500000-ef51ffff memory:ef538000-ef538fff ioport:f040(size=32)
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: enp3s0
       version: 11
       serial: d0:50:99:29:67:01
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:39 ioport:d000(size=256) memory:ef400000-ef400fff memory:e2100000-e2103fff

Code: Select all

$ rfkill list
$ 
needless to say i'd appreciate any guidance offered.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12334
Joined: Sun Aug 09, 2015 10:00 am

Re: installed new kernel, network gone!

Post by deepakdeshp »

You can boot into the old kernel by choosing 2nd option advanced in grub menu. Here all the installed grubs will be displayed and you can boot with any of them
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
hooly

Re: installed new kernel, network gone!

Post by hooly »

yeah, tried that, doesn't work for me.
the boot process on the alt kernel gets part way through, hangs for a while, and then dumps me to a "(infrms)" prompt (or something like that).
clearly that means there are other problems afoot but i figured i could tackle those in due course.
User avatar
JerryF
Level 16
Level 16
Posts: 6570
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: installed new kernel, network gone!

Post by JerryF »

Have you tried manually installing an older kernel from the Update Manager and then starting Mint from Grub Advanced?

Try a kernel from the 4.4 series.
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: installed new kernel, network gone!

Post by JeremyB »

It might be a DNS/DHCP issue, can you ping anything?

Code: Select all

ping -c3 8.8.8.8
Or able to ping the router? ping -c3 192.168.0.1[/code]
hooly

Re: installed new kernel, network gone!

Post by hooly »

JeremyB wrote: Sat May 26, 2018 11:08 am It might be a DNS/DHCP issue, can you ping anything? ...
thank you for the suggestions. here's the results of those pings:

Code: Select all

$ ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=21.8 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=29.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=28.8 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 21.833/26.901/29.997/3.615 ms

Code: Select all

$ ping -c3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.654 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.609 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.582 ms

--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2010ms
rtt min/avg/max/mdev = 0.582/0.615/0.654/0.029 ms
@ JerryF : thank you as well. didn't know older kernels were available offline via the Update Manager. if diagnosis/repair of the problem within the current kernel doesn't work i'll certainly try this option.
User avatar
Schultz
Level 9
Level 9
Posts: 2957
Joined: Thu Feb 25, 2016 8:57 pm

Re: installed new kernel, network gone!

Post by Schultz »

hooly wrote:
didn't know older kernels were available offline via the Update Manager
It's not available offline. The Update Manager has to download the kernel(s).
hooly

Re: installed new kernel, network gone!

Post by hooly »

Schultz wrote: Sat May 26, 2018 2:01 pm It's not available offline. The Update Manager has to download the kernel(s).
mightn't that be a little challenging given the lack of internet connection?
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: installed new kernel, network gone!

Post by jimallyn »

hooly wrote: Sat May 26, 2018 11:49 am didn't know older kernels were available offline via the Update Manager.
They aren't. But installing a new kernel doesn't uninstall your old kernel. So all you have to do is boot to your old kernel, and remove the new kernel that isn't working for you.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
User avatar
AZgl1800
Level 20
Level 20
Posts: 11171
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: installed new kernel, network gone!

Post by AZgl1800 »

I can vouch for unsupported WiFi drivers that will disappear with a new kernel,
but I found out thru this forum, that if they are installed correctly, with their PPA, that they can be permanent and will survive a new kernel upgrade.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: installed new kernel, network gone!

Post by JeremyB »

You should go into Network Setting for the wired connection, IPv4 tab and add 8.8.8.8 as a DNS server
hooly

Re: installed new kernel, network gone!

Post by hooly »

JeremyB wrote: Sat May 26, 2018 2:48 pm You should go into Network Setting for the wired connection, IPv4 tab and add 8.8.8.8 as a DNS server
have done this now, can't say it made a lot of difference. anything obvious i should be looking for?
hooly

Re: installed new kernel, network gone!

Post by hooly »

jimallyn wrote: Sat May 26, 2018 2:23 pm
hooly wrote: Sat May 26, 2018 11:49 am didn't know older kernels were available offline via the Update Manager.
They aren't. But installing a new kernel doesn't uninstall your old kernel. So all you have to do is boot to your old kernel, and remove the new kernel that isn't working for you.
understood, but how can you download a kernel via Update Manager if you don't have a working internet connection? i get the feeling i'm missing something here.
User avatar
JerryF
Level 16
Level 16
Posts: 6570
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: installed new kernel, network gone!

Post by JerryF »

Well, yes. No one can download anything from the internet if you're not connected to the internet. My suggestion was foolish. :oops:

There may be a way to download the files needed from another computer and then install the kernel(s) that way. Unfortunately, I am not knowledgeable with that. :cry:
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: installed new kernel, network gone!

Post by JeremyB »

What does the command route show you in terminal? You have an IP address from your router and can ping outside IP addresses. I don't think this is simply a kernel issue
hooly

Re: installed new kernel, network gone!

Post by hooly »

Code: Select all

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.1     0.0.0.0         UG    100    0        0 enp0s25
link-local      *               255.255.0.0     U     1000   0        0 enp0s25
192.168.0.0     *               255.255.255.0   U     100    0        0 enp0s25
does that tell you anything?
this is what i get when i boot into another partition on the same machine (that does have internet access):

Code: Select all

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         routerlogin.net 0.0.0.0         UG    100    0        0 enp0s25
link-local      *               255.255.0.0     U     1000   0        0 enp0s25
192.168.0.0     *               255.255.255.0   U     100    0        0 enp0s25
i see there's a difference in the default Gateway. no idea if that matters.
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: installed new kernel, network gone!

Post by JeremyB »

See what this command shows

Code: Select all

nmcli -f all device show | sed '/^GENERAL.DEVICE:[ ]\+lo$/,/^$/d; /^AP\[[0-9]\+\]\./d'
hooly

Re: installed new kernel, network gone!

Post by hooly »

sure thing:

Code: Select all

$ nmcli -f all device show | sed '/^GENERAL.DEVICE:[ ]\+lo$/,/^$/d; /^AP\[[0-9]\+\]\./d'
GENERAL.DEVICE:                         enp0s25
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.VENDOR:                         Intel Corporation
GENERAL.PRODUCT:                        Ethernet Connection (2) I218-V
GENERAL.DRIVER:                         e1000e
GENERAL.DRIVER-VERSION:                 3.2.6-k
GENERAL.FIRMWARE-VERSION:               0.1-4
GENERAL.HWADDR:                         D0:50:99:29:67:00
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.REASON:                         0 (No reason given)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:19.0/net/enp0s25
GENERAL.IP-IFACE:                       enp0s25
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     Wired connection 1
GENERAL.CON-UUID:                       b290bbf1-d5bf-356c-a135-22e6bd23bf11
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/0
GENERAL.METERED:                        no (guessed)
CAPABILITIES.CARRIER-DETECT:            yes
CAPABILITIES.SPEED:                     1000 Mb/s
CAPABILITIES.IS-SOFTWARE:               no
WIRED-PROPERTIES.CARRIER:               on
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{0}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   b290bbf1-d5bf-356c-a135-22e6bd23bf11 | Wired connection 1
IP4.ADDRESS[1]:                         192.168.0.2/24
IP4.GATEWAY:                            192.168.0.1
IP4.ROUTE[1]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]:                             192.168.0.1
IP4.DNS[2]:                             8.8.8.8
DHCP4.OPTION[1]:                        requested_routers = 1
DHCP4.OPTION[2]:                        requested_domain_search = 1
DHCP4.OPTION[3]:                        requested_time_offset = 1
DHCP4.OPTION[4]:                        requested_domain_name = 1
DHCP4.OPTION[5]:                        requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[6]:                        requested_broadcast_address = 1
DHCP4.OPTION[7]:                        host_name = cina18-box
DHCP4.OPTION[8]:                        requested_wpad = 1
DHCP4.OPTION[9]:                        requested_netbios_scope = 1
DHCP4.OPTION[10]:                       next_server = 0.0.0.0
DHCP4.OPTION[11]:                       expiry = 1527516139
DHCP4.OPTION[12]:                       requested_interface_mtu = 1
DHCP4.OPTION[13]:                       requested_subnet_mask = 1
DHCP4.OPTION[14]:                       dhcp_lease_time = 86400
DHCP4.OPTION[15]:                       dhcp_message_type = 5
DHCP4.OPTION[16]:                       ip_address = 192.168.0.2
DHCP4.OPTION[17]:                       requested_static_routes = 1
DHCP4.OPTION[18]:                       requested_domain_name_servers = 1
DHCP4.OPTION[19]:                       routers = 192.168.0.1
DHCP4.OPTION[20]:                       broadcast_address = 192.168.0.255
DHCP4.OPTION[21]:                       requested_ntp_servers = 1
DHCP4.OPTION[22]:                       requested_netbios_name_servers = 1
DHCP4.OPTION[23]:                       domain_name_servers = 192.168.0.1
DHCP4.OPTION[24]:                       requested_ms_classless_static_routes = 1
DHCP4.OPTION[25]:                       subnet_mask = 255.255.255.0
DHCP4.OPTION[26]:                       network_number = 192.168.0.0
DHCP4.OPTION[27]:                       requested_host_name = 1
DHCP4.OPTION[28]:                       dhcp_server_identifier = 192.168.0.1
IP6.ADDRESS[1]:                         fe80::1862:97e1:3308:7900/64
IP6.GATEWAY:                            

GENERAL.DEVICE:                         enp3s0
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.VENDOR:                         Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT:                        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (Motherboard (one of many))
GENERAL.DRIVER:                         r8169
GENERAL.DRIVER-VERSION:                 2.3LK-NAPI
GENERAL.FIRMWARE-VERSION:               
GENERAL.HWADDR:                         D0:50:99:29:67:01
GENERAL.MTU:                            1500
GENERAL.STATE:                          20 (unavailable)
GENERAL.REASON:                         2 (Device is now managed)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/enp3s0
GENERAL.IP-IFACE:                       
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     --
GENERAL.CON-UUID:                       --
GENERAL.CON-PATH:                       --
GENERAL.METERED:                        unknown
CAPABILITIES.CARRIER-DETECT:            yes
CAPABILITIES.SPEED:                     unknown
CAPABILITIES.IS-SOFTWARE:               no
WIRED-PROPERTIES.CARRIER:               off
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: 

$
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: installed new kernel, network gone!

Post by JeremyB »

What about

Code: Select all

cat /etc/resolv.conf
You may need to

Code: Select all

sudo dpkg-reconfigure resolvconf
Answer yes to enable dynamic updates
hooly

Re: installed new kernel, network gone!

Post by hooly »

ok, well, the short answer is that this is the output:

Code: Select all

$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
i repeated it over the course of several minutes and the output didn't change. this after having done the "sudo dpkg-reconfigure resolvconf" as requested.

the longer answer is that i'm posting this from that same "formerly wouldn't connect to the internet" partition. in other words the problem seems to have suddenly disappeared!
:x i hate it when voodoo stuff like this happens.
does this make any sense to anyone?

ftr the output of "route" has now changed:

Code: Select all

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         routerlogin.net 0.0.0.0         UG    100    0        0 enp0s25
link-local      *               255.255.0.0     U     1000   0        0 enp0s25
192.168.0.0     *               255.255.255.0   U     100    0        0 enp0s25
Locked

Return to “Networking”