Linux Lite Forums

Software - Support => Installing Linux Lite => Topic started by: AZ on October 06, 2014, 07:04:04 PM

Title: Reinstalling LL after losing wifi due to installing updates
Post by: AZ on October 06, 2014, 07:04:04 PM

Linux Lite: 2.0
I'm trying to reinstall LL on my hard drive after losing wifi due to installing updates. When I go to install LL using the CD, I have the option to install LL alongside Windows XP. I've already installed LL alongside XP. I don't want two LL operating systems & XP installed. I want to reinstall LL over the existing LL. I believe, I have to delete one of the partitions (number 5) but it won't let me. I need to know which partition to delete. Below are my partitions on my hard drive. Any help would be much appreciated. Thanks

AZ

linux@linux:~$ sudo parted -l
Model: ATA WDC WD600UE-22KV (scsi)
Disk /dev/sda: 60.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      32.3kB  47.3GB  47.3GB  primary   ntfs            boot
 2      47.3GB  60.0GB  12.7GB  extended
 5      47.3GB  58.5GB  11.3GB  logical   ext4
 6      58.5GB  60.0GB  1473MB  logical   linux-swap(v1)


Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.
Error: Invalid partition table - recursive partition on /dev/sr0.         
Ignore/Cancel?
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: N4RPS on October 06, 2014, 07:20:07 PM
Hello!

If I felt I had to reinstall Linux Lite, I would select 'Something Else', select to format sda5, and install the replacement LL to replace the current one in sda5. However, depending on the wireless card you have, if you can get online another way (LAN cable, tethered phone, etc.), it might be easier to just pull down and reinstall the affected drivers instead - ESPECIALLY if you've installed a lot of software after you installed your current one...

73 DE N4RPS
Rob

Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: gold_finger on October 07, 2014, 01:37:41 AM
I agree with N4RPS here.  Think you're better off trying to get wifi working vs. going through a new install again.  Have a feeling that as soon as you run updates after the install you'll just end up back where you are now.

Temporarily use an ethernet cable for now.  Open a terminal and enter following commands one at a time.

Code: [Select]
sudo apt-get update
sudo apt-get install inxi
inxi -nz

Copy/Paste back here the output of that last command which will show us what kind of network card is on the machine and what driver it's using.

Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: AZ on October 07, 2014, 10:05:43 AM
Hi gold_finger,

Here are the results from the last command, inxi -nz.


linux@linux:~$ inxi -nz
Network:   Card-1: Broadcom BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller driver: b43-pci-bridge
           IF: wlan0 state: up mac: <filter>
           Card-2: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter driver: 8139too
           IF: eth0 state: down mac: <filter>
linux@linux:~$

Thanks,
AZ
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: gold_finger on October 07, 2014, 01:53:18 PM
Not really an expert on wifi problems, but let's see if we can fix this.

Edit:  If anyone else who is familiar with Broadcom problems wants to jump in, please do.

Go to Menu -> System -> Install/Remove Software to open up the Synaptic Package Manager.  Highlight "All" and "Status" on the left-hand side of Synaptic, then type "broadcom" in the "Quick filter" search box.  (If Quick filter not showing, just use "Search".  Once you do a first search in Synaptic, when you close and re-open the program it will then start showing the "Quick filter" box.)

(http://ibin.co/1cvuyIcJEtOg)

Try to adjust size of results window so that all of the boxes shown in green show up without you having to scroll.  When you have that done, take a screenshot of the window and post it back here for us to see.  Menu -> Accessories -> Screenshot -> Active window -> OK -> Save -> then change name of screenshot to synaptic.png and save it.  (Use directions in this post for including screenshots in your reply:  https://www.linuxliteos.com/forums/index.php?topic=487.0 (https://www.linuxliteos.com/forums/index.php?topic=487.0).)

Also, go to Menu -> Settings -> Install Drivers.  After it finishes loading, take a screenshot of that and post it back here.  Don't change anything with the program -- just take the screenshot, then close the window.

Lastly, open a terminal and post back output from this command:
Code: [Select]
apt-cache policy linux-firmware-nonfree bcmwl-kernel-source
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bitsnpcs on October 07, 2014, 05:35:53 PM
Hello AZ,

Source - 'Varun' (http://ubuntuforums.org/showthread.php?t=2174511)
Quote
The sta driver won't support your card, the native b43 will. Please purge the sta driver package and install the firmware for b43 instead -

Code: [Select]
sudo apt-get purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Quote
Then unload (if already loaded) and reload the b43 driver-
Code: [Select]
sudo modprobe -rv b43
sudo modprobe -v b43

Remove ethernet cable.
Reboot machine.
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: N4RPS on October 07, 2014, 06:38:04 PM
Hello!

Thanks. After all, why 'throw out the baby with the bath water'?

73 DE N4RPS
Rob
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bitsnpcs on October 07, 2014, 08:00:17 PM
Hello Rob,

yes indeed, an apt phrase  8)




Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: AZ on October 08, 2014, 10:04:45 AM
Earlier, I gave the wifi card & driver information when I used the CD to access the internet. I removed the CD and hooked up the ethernet cable and looked at the wifi card & driver information again and came up with a different driver. Below is the new (correct) information when using the ethernet  cable to access the internet.

Network:   Card-1: Broadcom BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller driver: wl
           IF: N/A state: N/A mac: N/A
           Card-2: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter driver: 8139too
           IF: eth0 state: unknown speed: 100 Mbps duplex: full mac: <filter>

Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: gold_finger on October 08, 2014, 10:34:38 AM
Network:   Card-1: Broadcom BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller driver: wl
           IF: N/A state: N/A mac: N/A

Given that new info, go ahead an follow instructions posted by bitsnpcs a few posts ago.  Boot into installed LL (not live CD) with ethernet cable plugged-in; then open a terminal and enter the four commands in order shown in his post.  When done, reboot computer without ethernet cable attached and hopefully your wifi will be working again.

P.s.  It's entirely possible that when you enter "sudo apt-get install linux-firmware-nonfree" command it will come back saying that it's already installed.  That's fine, just continue on to next steps.
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: AZ on October 08, 2014, 01:11:59 PM
I attached the ethernet cable, entered the four commands posted by bitsnpcs, removed the ethernet cable (hooked up the wifi) & rebooted and still had no wifi. I tried entering the four commands again and still no wifi. Any ideas. Thanks.

AZ
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: anon222 on October 08, 2014, 01:30:31 PM
Lets see what  PCI ID you have for that wireless
Code: [Select]
lspci -nn -d 14e4:
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: AZ on October 08, 2014, 05:03:02 PM
Below are the results from the command: lspci -nn -d 14e4:,

gary@gary-Presario-V5000-RG324UA-ABA:~$ lspci -nn -d 14e4:
06:02.0 Network controller [0280]: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller [14e4:4318] (rev 02)
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: anon222 on October 08, 2014, 07:56:17 PM
[14e4:4318] (rev 02)
remove any of the packages you previously installed for that wifi
and install this
Code: [Select]
sudo apt-get install firmware-b43-installer
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: AZ on October 09, 2014, 09:42:44 AM
Thank you very much misko_2083. I installed the code and I'm now able to get on the internet with a wireless connection.

AZ
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 12:01:50 PM
I'm experiencing a similar problem today.  I already have 64-bit LL2.0 on a PC, and today I have installed the 32-bit version on an elderly Dell Inspiron 1525 laptop as a dual-boot with Windows Vista.  At first the wireless connection was working OK with the installed LL (I succeeded in synching my Google & LastPass accounts), then it stopped working.  The wireless connection still works in Windows and when I boot from the LL CD.

I've followed the instructions in Post #2 from gold_finger, and the results of the inxi -nz command, in the installed LL, are:
Network:   Card-1: Broadcom BCM4311 802.11a/b/g driver: wl
           IF: N/A state: N/A mac: N/A
           Card-2: Marvell 88E8040 PCI-E Fast Ethernet Controller driver: sky2
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>

The command "lspci -nn -d 14e4:" suggested by misko_2083 returns no result.

I have also installed the firmware-b43-installer as per Misko_2083's Post #13, and rebooted without the ethernet cable, but the  wireless connection still doesn't work.

Incidentally, if I need to reinstall, could I use the 64-bit LL2.0?  There is a system report attached - it suggests that the CPU has 32-bit and 64-bit operating modes.

[attachment deleted by admin, more than 25 days old]
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 12:19:46 PM
Regarding my final question, I've now established that it is a 32-bit machine.
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: rokytnji on October 09, 2014, 12:31:49 PM
Just some more info to read for you broadcom chip users.

https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx

Since Linux-Lite 2.0 is based on Ubuntu 14.04

It explains that the wl driver is the proprietary broadcom driver and b43 is the open source driver.
Confusing I know. But that is broadcoms fault, (just my opinion).

For the b43 open source :

Quote
Note: Not all PCI-ID's and/or modes are supported.

So pcid with broadcom is a must. Seems like all broadcom chips are not created equal.
You should though just be able to get your 4311 working. Just some other colored hoops
broadcom wants you to jump through is all. And they do make it hard.
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: anon222 on October 09, 2014, 12:41:30 PM
bobw,
Code: [Select]
sudo apt-get updateDownload new pci id list
Code: [Select]
sudo update-pciidstry again
Code: [Select]
lspci -nn -d 14e4:if it's
14e4:4311 
then you'll have to remove the existing drivers
Code: [Select]
sudo apt-get purge bcmwl-kernel-source firmware-b43-installerAnd install linux-firmware-nonfree
Code: [Select]
sudo apt-get install linux-firmware-nonfreereboot
Broadcom drivers are a mess :)
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 01:46:56 PM
Thanks misko_2083.

Response to the 3rd command is:
0b:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11a/b/g [14e4:4312] (rev 01)

So it's 14e4:4312, rather than 14e4:4311.  Should I now omit the 4th command and proceed to the 5th?
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: anon222 on October 09, 2014, 01:51:43 PM
Yes, it's the same driver for 14e4:4312.
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 02:52:34 PM
Unfortunately, that hasn't worked.  I also tried going back to the 4th command, then the 5th again, but still no success.

The output from the inxi -nz command is now:
Network:   Card-1: Broadcom BCM4311 802.11a/b/g driver: b43-pci-bridge
           IF: N/A state: N/A mac: N/A
           Card-2: Marvell 88E8040 PCI-E Fast Ethernet Controller driver: sky2
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>

I've looked at the page suggested by rokyntji:
https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx

Should I try something from this page:
sudo apt-get --reinstall install bcmwl-kernel-source

This is for Ubuntu 12.04-12.10, so may not be right for LL2.0?
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: anon222 on October 09, 2014, 03:15:50 PM
That's [14e4:4312] (rev 01) how did I missed that :) Sorry
Broadcom PCI ID's are so confusing
Code: [Select]
sudo apt-get purge linux-firmware-nonfree
Code: [Select]
sudo apt-get install firmware-b43-installerreboot

As you can see  Broadcom BCM4311 is on the list here

misko@misko-virtual-machine:~$ apt-cache show firmware-b43-installer
Package: firmware-b43-installer
Priority: optional
Section: multiverse/kernel
Installed-Size: 56
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Daniel Echeverry <[email protected]>
Architecture: all
Source: b43-fwcutter
Version: 1:018-2
Replaces: firmware-b43-lpphy-installer (<= 1:015-14)
Depends: b43-fwcutter (>= 1:018-2), bzip2, wget
Breaks: firmware-b43-lpphy-installer (<= 1:015-14)
Filename: pool/multiverse/b/b43-fwcutter/firmware-b43-installer_018-2_all.deb
Size: 3960
MD5sum: 07d2f9cb3e6f8c0091a51aa52e2a15d1
SHA1: 5426bc3087f8b45f0367a0b536a7ad5f55412db4
SHA256: 98bcb297319ccde275b8a130ae00b7eea867d54c8a6db6d0ee511fc0bfb2b90b
Description-en: firmware installer for the b43 driver
 This package downloads and installs the firmware needed by the b43
 kernel driver for some Broadcom 43xx wireless network cards.
 .
 Supported chipsets:
  * BCM4306/3;
  * BCM4311;
  * BCM4318;
  * BCM4321;
  * BCM4322 (only 14e4:432b);
  * BCM4312 (with Low-Power a.k.a. LP-PHY).
Description-md5: 69be8c515d4213f3cacafffeda87ed7a
Homepage: http://wireless.kernel.org/en/users/Drivers/b43
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu


Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 03:36:38 PM
Thanks again misko_2083 for all your help, and rokyntji for your response, but unfortunately it still hasn't worked.

I am wondering now whether I should try a reinstall - it's strange that the wireless connection was working initially then failed.

Any further suggestions would be appreciated though.
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: rokytnji on October 09, 2014, 04:10:23 PM
Usually when I see this part of a thread coming up ("it did not work also"). My next question is was a md5sum done of downloaded Linux-Lite iso.
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 04:32:09 PM
I don't think it was.  I made the disk about 3 months ago, before misko_2083 developed the Thunar facility for checking the MD5sum.  I've used to install LL successfully on two other machines, but they didn't have wireless connectivity.  I don't have the ISO file now.

If no other suggestions emerge, I'll try reinstalling from the present disk then if that fails I'll try a fresh download.
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: anon222 on October 09, 2014, 04:39:57 PM
Try one more thing.
Maybe you card is supported by more than one driver, and they are conflicting.
First unload all the drivers.
Code: [Select]
sudo modprobe -r b43 wl brcmsmacThen loasd this driver:
Code: [Select]
sudo modprobe b43Wait a few seconds  and try to make a connection. If that works you'll have to blacklist the other drivers.
If that doesn't work  unload this driver and try this one.
Code: [Select]
sudo modprobe brcmsmacUnload, then try next driver.
Code: [Select]
sudo modprobe wl
Here is how to blacklist a driver
Code: [Select]
echo "blacklist drivername" | sudo tee -a /etc/modprobe.d/blacklist-broadcom-wireless.confReplace "drivername"  with the ones you don't want to use
You will have to do it twice because you need 2 lines in the /etc/modprobe.d/blacklist-broadcom-wireless.conf
One for each blacklisted driver.
Example:
Code: [Select]
echo "blacklist wl" | sudo tee -a /etc/modprobe.d/blacklist-broadcom-wireless.conf
Code: [Select]
echo "blacklist brcmsmac" | sudo tee -a /etc/modprobe.d/blacklist-broadcom-wireless.confUpdate the initramfs after any changes to the blacklist files:
Code: [Select]
sudo update-initramfs -uReboot:
Code: [Select]
sudo reboot
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 05:01:57 PM
Thanks misko_2083 - you're certainly putting some work in for me.

I didn't get past the first command.  It returned message:
modprobe: FATAL: Module wl is in use.

What should I do now?
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: anon222 on October 09, 2014, 05:13:28 PM
Code: [Select]
sudo apt-get remove --purge bcmwl-kernel-sourcereboot
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 05:21:55 PM
OK - done that.

Should I now follow the instructions at #26, or are some now redundant?
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: anon222 on October 09, 2014, 05:32:22 PM
Now run
Code: [Select]
sudo modprobe b43Wait some tine and try to connect
Title: Re: Reinstalling LL after losing wifi due to installing updates
Post by: bobw on October 09, 2014, 05:52:44 PM
Thanks misko_2083 - you're a star.

It's now working perfectly - ethernet cable is disconnected!