You are not logged in.

#1 2017-04-26 04:49

tadvrat
Member
Registered: 2017-04-26
Posts: 4

Wireless adapter not detected.Offline installation of a newer kernel?

My wireless adapter is not detected and hence I am unable to install other software. I wonder if I can install a newer kernel offline that detects it. I am running another distro on 4.9.23 kernel and it detects quite well. Any help is greatly appreciated. Thanks.

Offline

#2 2017-04-26 08:40

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,223
Website

Re: Wireless adapter not detected.Offline installation of a newer kernel?

The most easy way seems to be boot from a live media with internet connection available, mount Q4OS partition, chroot into it and run 'qinst-kernel-bpo' script. It will upgrade kernel the most proper way. Please follow steps below:

- Boot from a live media with internet connection available

- Mount root Q4OS partition from terminal:
$ mkdir /tmp/q4os_mount_point
$ sudo mount /dev/sdX /tmp/q4os_mount_point
replace sdX with partition which Q4OS is installed on

- Chroot into and mount needed directories:
$ sudo mount --bind /dev/pts /tmp/q4os_mount_point/dev/pts/
$ sudo chroot /tmp/q4os_mount_point
#> mount -t proc proc /proc/
#> mount -t sysfs sys /sys/

- Run script and exit from chroot:
#> qinst-kernel-bpo
#> apt-get -t jessie-backports install linux-headers-amd64 linux-image-amd64 firmware-linux
#> exit

- Reboot back to the installed Q4OS, you will be still with the default kernel 3.16.

- Reconfigure dpkg to finish kernel installation.
$ sudo dpkg --configure -a

- Update grub configuration:
$ sudo update-grub

- Reboot again, new kernel (4.9 at the moment) should now boot. You can check it:
$ uname -a

Last edited by q4osteam (2017-04-27 14:30)

Offline

#3 2017-04-27 13:40

tadvrat
Member
Registered: 2017-04-26
Posts: 4

Re: Wireless adapter not detected.Offline installation of a newer kernel?

Thanks for taking the trouble but when I try to update I get this:
------
root@xyz:/# qinst-kernel-bpo
This script will install latest Linux kernel from backports repository.
sudo: unable to resolve host xyz
sudo: unable to resolve host xyz

Checking internet connection ..
No internet link, make a connection and try again.
------
But I am able to access the internet through the browser! Kindly let me know what else should I do.

Offline

#4 2017-04-27 13:43

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Wireless adapter not detected.Offline installation of a newer kernel?

You would need to copy /etc/resolv.conf from your live environment to your chrooted environment and it should give you net access.

Offline

#5 2017-04-27 13:59

tadvrat
Member
Registered: 2017-04-26
Posts: 4

Re: Wireless adapter not detected.Offline installation of a newer kernel?

Some progress, but:
--------
root@xyz:/# qinst-kernel-bpo
This script will install latest Linux kernel from backports repository.
sudo: unable to resolve host xyz
sudo: unable to resolve host xyz

Checking internet connection ..
.. link ok.
Updating sw database
sudo: unable to resolve host xyz
Ign http://ftp.debian.org jessie InRelease
Get:1 http://ftp.debian.org jessie-updates InRelease [145 kB]   
Get:2 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:3 http://q4os.org q4os-1-0-cn InRelease [4657 B]                           
Get:4 http://q4os.org jessie InRelease [4678 B]                               
Get:5 http://q4os.org q4os-1-0-cn/main amd64 Packages [4637 B]                 
Get:6 http://security.debian.org jessie/updates/main amd64 Packages [401 kB]   
Get:7 http://q4os.org jessie/main amd64 Packages [240 kB]                   
Get:8 http://ftp.debian.org jessie-backports InRelease [166 kB]               
Get:9 http://ftp.debian.org jessie Release.gpg [2373 B]                       
Get:10 http://ftp.debian.org jessie-updates/contrib amd64 Packages [32 B]     
Get:11 http://ftp.debian.org jessie-updates/contrib Translation-en [14 B]     
Get:12 http://ftp.debian.org jessie-updates/main Translation-en [12.6 kB]     
Get:13 http://ftp.debian.org jessie-updates/non-free Translation-en [496 B]   
Ign http://q4os.org q4os-1-0-cn/main Translation-en                           
Get:14 http://ftp.debian.org jessie-backports/contrib Translation-en [7064 B]
Get:15 http://security.debian.org jessie/updates/contrib amd64 Packages [2506 B]
Ign http://q4os.org jessie/main Translation-en                                 
Get:16 http://ftp.debian.org jessie-backports/main Translation-en [615 kB]
Get:17 http://security.debian.org jessie/updates/non-free amd64 Packages [14 B]
Get:18 http://security.debian.org jessie/updates/contrib Translation-en [1211 B]
Get:19 http://security.debian.org jessie/updates/main Translation-en [210 kB] 
Get:20 http://ftp.debian.org jessie-backports/non-free Translation-en [29.0 kB]
Get:21 http://security.debian.org jessie/updates/non-free Translation-en [14 B]
Get:22 http://ftp.debian.org jessie Release [148 kB]                           
Get:23 http://ftp.debian.org jessie-updates/main amd64 Packages [15.5 kB]     
Get:24 http://ftp.debian.org jessie-updates/non-free amd64 Packages [516 B]   
Get:25 http://ftp.debian.org jessie-backports/main amd64 Packages [893 kB]     
Get:26 http://ftp.debian.org jessie-backports/contrib amd64 Packages [9800 B] 
Get:27 http://ftp.debian.org jessie-backports/non-free amd64 Packages [27.7 kB]
Get:28 http://ftp.debian.org jessie/main amd64 Packages [6776 kB]             
Get:29 http://ftp.debian.org jessie/contrib amd64 Packages [50.2 kB]           
Get:30 http://ftp.debian.org jessie/non-free amd64 Packages [83.6 kB]         
Get:31 http://ftp.debian.org jessie/contrib Translation-en [38.5 kB]           
Get:32 http://ftp.debian.org jessie/main Translation-en [4582 kB]             
Get:33 http://ftp.debian.org jessie/non-free Translation-en [72.1 kB]         
Fetched 14.6 MB in 23s (634 kB/s)                                             
Reading package lists... Done
Blacklisting packages
sudo: unable to resolve host xyz
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'rtkit' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo: unable to resolve host xyz
Installing 21.lts kernel
sudo: unable to resolve host xyz
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  linux-libc-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1046 kB of archives.
After this operation, 3471 kB of additional disk space will be used.
Get:1 http://security.debian.org/ jessie/updates/main linux-libc-dev amd64 3.16.39-1+deb8u2 [1046 kB]
Fetched 1046 kB in 2s (371 kB/s)         
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package linux-libc-dev:amd64.
(Reading database ... 42407 files and directories currently installed.)
Preparing to unpack .../linux-libc-dev_3.16.39-1+deb8u2_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.16.39-1+deb8u2) ...
Setting up linux-libc-dev:amd64 (3.16.39-1+deb8u2) ...
sudo: unable to resolve host xyz
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-21.lts
E: Couldn't find any package by regex 'linux-headers-21.lts'
E: Unable to locate package linux-image-21.lts
E: Couldn't find any package by regex 'linux-image-21.lts'
Error, installation failed for some reason.
root@xyz:/#
--------

Offline

#6 2017-04-27 14:04

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Wireless adapter not detected.Offline installation of a newer kernel?

You will need to update apt before installation,

sudo apt-get update

from the chrooted environment.

EDIT: Oops, maybe that is already done by the instaler... sorry

Last edited by Dai_trying (2017-04-27 14:05)

Offline

#7 2017-04-27 14:12

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,223
Website

Re: Wireless adapter not detected.Offline installation of a newer kernel?

Please try to upgrade kernel from the chroot environment the following way:
#> apt-get -t jessie-backports install linux-headers-amd64 linux-image-amd64 firmware-linux
and report back.

Offline

#8 2017-04-28 02:57

tadvrat
Member
Registered: 2017-04-26
Posts: 4

Re: Wireless adapter not detected.Offline installation of a newer kernel?

Sorry, I could not wait for your instructions. It flashed to me that I had a mobile which could connect to the wifi nearby. I did a usb-tethering and upgraded the kernel running the script. I did a reboot and the newer kernel was able to detect my wireless adaptor! I am enjoying the nostalgic interface! Many thanks for your support!

Offline

#9 2017-04-28 08:51

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,989

Re: Wireless adapter not detected.Offline installation of a newer kernel?

I'm glad you got it working, but I am guessing you missed yesterdays post by Q4OS Team. Alls well that ends well though smile

Offline

Board footer

Powered by FluxBB