Uninstalled metapackage trisquel-mini, lost WiFi

10 respuestas [Último envío]
calher

I am a member!

Desconectado/a
se unió: 06/19/2015

I broke my system. I tried the following. I am stuck. I need help.

Started on Trisquel Mini. Uninstalled metapackage trisquel-mini.

sudo apt-get remove trisquel-mini

No NetworkManager, lost WiFi. Solution: reinstall NetworkManager without WiFi.

Booted live Trisquel. Decrypted Trisquel Mini root volume.

Chrooted to Trisquel Mini root volume.

sudo chroot /media/trisquel/ee2acd05-1b50-470f-add3-cebc0298a5ee/ bash

Installed NetworkManager in chroot.

root@trisquel:/# sudo apt-get install --yes network-manager
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  iputils-arping libgnome-bluetooth11 libnm-glib-vpn1 libnm-gtk-common
  libnm-gtk0 network-manager-gnome network-manager-pptp
  network-manager-pptp-gnome pptp-linux wpasupplicant
Suggested packages:
  gnome-bluetooth network-manager-openconnect-gnome
  network-manager-openvpn-gnome network-manager-vpnc-gnome wpagui
  libengine-pkcs11-openssl
The following NEW packages will be installed:
  iputils-arping libgnome-bluetooth11 libnm-glib-vpn1 libnm-gtk-common
  libnm-gtk0 network-manager network-manager-gnome network-manager-pptp
  network-manager-pptp-gnome pptp-linux wpasupplicant
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,795 kB of archives.
After this operation, 7,670 kB of additional disk space will be used.
Get:1 http://us.archive.trisquel.info/trisquel/ belenos-updates/main wpasupplicant i386 2.1-0ubuntu1.3 [734 kB]
Get:2 http://us.archive.trisquel.info/trisquel/ belenos-updates/main iputils-arping i386 3:20121221-4ubuntu1.1 [26.2 kB]
Get:3 http://us.archive.trisquel.info/trisquel/ belenos-updates/main network-manager i386 0.9.8.8-0ubuntu7.1 [493 kB]
Get:4 http://us.archive.trisquel.info/trisquel/ belenos-updates/main libgnome-bluetooth11 i386 3.8.2.1-0ubuntu4.2 [55.8 kB]
Get:5 http://us.archive.trisquel.info/trisquel/ belenos-updates/main libnm-glib-vpn1 i386 0.9.8.8-0ubuntu7.1 [12.9 kB]
Get:6 http://us.archive.trisquel.info/trisquel/ belenos-updates/main libnm-gtk-common all 0.9.8.8-0ubuntu4.3 [5,492 B]
Get:7 http://us.archive.trisquel.info/trisquel/ belenos-updates/main libnm-gtk0 i386 0.9.8.8-0ubuntu4.3 [60.1 kB]
Get:8 http://us.archive.trisquel.info/trisquel/ belenos-updates/main network-manager-gnome i386 0.9.8.8-0ubuntu4.3 [309 kB]
Get:9 http://us.archive.trisquel.info/trisquel/ belenos/main pptp-linux i386 1.7.2-7 [47.3 kB]
Get:10 http://us.archive.trisquel.info/trisquel/ belenos/main network-manager-pptp i386 0.9.8.2-1ubuntu2 [22.4 kB]
Get:11 http://us.archive.trisquel.info/trisquel/ belenos/main network-manager-pptp-gnome i386 0.9.8.2-1ubuntu2 [27.9 kB]
Fetched 1,795 kB in 16s (107 kB/s)                                             
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
dpkg-preconfigure: unable to re-open stdin: No such file or directory
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
Selecting previously unselected package wpasupplicant.
(Reading database ... 213174 files and directories currently installed.)
Preparing to unpack .../wpasupplicant_2.1-0ubuntu1.3_i386.deb ...
Unpacking wpasupplicant (2.1-0ubuntu1.3) ...
Selecting previously unselected package iputils-arping.
Preparing to unpack .../iputils-arping_3%3a20121221-4ubuntu1.1_i386.deb ...
Unpacking iputils-arping (3:20121221-4ubuntu1.1) ...
Selecting previously unselected package network-manager.
Preparing to unpack .../network-manager_0.9.8.8-0ubuntu7.1_i386.deb ...
Unpacking network-manager (0.9.8.8-0ubuntu7.1) ...
Selecting previously unselected package libgnome-bluetooth11.
Preparing to unpack .../libgnome-bluetooth11_3.8.2.1-0ubuntu4.2_i386.deb ...
Unpacking libgnome-bluetooth11 (3.8.2.1-0ubuntu4.2) ...
Selecting previously unselected package libnm-glib-vpn1.
Preparing to unpack .../libnm-glib-vpn1_0.9.8.8-0ubuntu7.1_i386.deb ...
Unpacking libnm-glib-vpn1 (0.9.8.8-0ubuntu7.1) ...
Selecting previously unselected package libnm-gtk-common.
Preparing to unpack .../libnm-gtk-common_0.9.8.8-0ubuntu4.3_all.deb ...
Unpacking libnm-gtk-common (0.9.8.8-0ubuntu4.3) ...
Selecting previously unselected package libnm-gtk0.
Preparing to unpack .../libnm-gtk0_0.9.8.8-0ubuntu4.3_i386.deb ...
Unpacking libnm-gtk0 (0.9.8.8-0ubuntu4.3) ...
Selecting previously unselected package network-manager-gnome.
Preparing to unpack .../network-manager-gnome_0.9.8.8-0ubuntu4.3_i386.deb ...
Unpacking network-manager-gnome (0.9.8.8-0ubuntu4.3) ...
Selecting previously unselected package pptp-linux.
Preparing to unpack .../pptp-linux_1.7.2-7_i386.deb ...
Unpacking pptp-linux (1.7.2-7) ...
Selecting previously unselected package network-manager-pptp.
Preparing to unpack .../network-manager-pptp_0.9.8.2-1ubuntu2_i386.deb ...
Unpacking network-manager-pptp (0.9.8.2-1ubuntu2) ...
Selecting previously unselected package network-manager-pptp-gnome.
Preparing to unpack .../network-manager-pptp-gnome_0.9.8.2-1ubuntu2_i386.deb ...
Unpacking network-manager-pptp-gnome (0.9.8.2-1ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Can't open /dev/null: Permission denied
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for libglib2.0-0:i386 (2.40.2-0ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gconf2 (3.2.6-0ubuntu2) ...
/var/lib/dpkg/info/gconf2.postinst: 27: /var/lib/dpkg/info/gconf2.postinst: cannot create /dev/null: Permission denied
dpkg: error processing package gconf2 (--unpack):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for desktop-file-utils (0.22-1ubuntu1+7.0trisquel1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
 gconf2
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@trisquel:/# sudo apt-get -f install --yes network-manager
Reading package lists... Done
Building dependency tree       
Reading state information... Done
network-manager is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
12 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
Setting up wpasupplicant (2.1-0ubuntu1.3) ...
/var/lib/dpkg/info/wpasupplicant.postinst: 23: /var/lib/dpkg/info/wpasupplicant.postinst: cannot create /dev/null: Permission denied
Setting up iputils-arping (3:20121221-4ubuntu1.1) ...
/var/lib/dpkg/info/iputils-arping.postinst: 10: /var/lib/dpkg/info/iputils-arping.postinst: cannot create /dev/null: Permission denied
/var/lib/dpkg/info/iputils-arping.postinst: 11: /var/lib/dpkg/info/iputils-arping.postinst: cannot create /dev/null: Permission denied
Setting up network-manager (0.9.8.8-0ubuntu7.1) ...
/var/lib/dpkg/info/network-manager.postinst: 28: /var/lib/dpkg/info/network-manager.postinst: cannot create /dev/null: Permission denied
dpkg: error processing package network-manager (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up gconf2 (3.2.6-0ubuntu2) ...
Traceback (most recent call last):
  File "/usr/sbin/gconf-schemas", line 111, in 
    fd = os.open("/dev/null",os.O_WRONLY)
OSError: [Errno 13] Permission denied: '/dev/null'
dpkg: error processing package gconf2 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libgnome-bluetooth11 (3.8.2.1-0ubuntu4.2) ...
/sbin/ldconfig: 6: /sbin/ldconfig: cannot create /dev/null: Permission denied
Setting up libnm-glib-vpn1 (0.9.8.8-0ubuntu7.1) ...
/sbin/ldconfig: 6: /sbin/ldconfig: cannot create /dev/null: Permission denied
Setting up libnm-gtk-common (0.9.8.8-0ubuntu4.3) ...
Setting up libnm-gtk0 (0.9.8.8-0ubuntu4.3) ...
/sbin/ldconfig: 6: /sbin/ldconfig: cannot create /dev/null: Permission denied
dpkg: dependency problems prevent configuration of network-manager-gnome:
 network-manager-gnome depends on network-manager (>= 0.9.8); however:
  Package network-manager is not configured yet.

dpkg: error processing package network-manager-gnome (--configure):
 dependency problems - leaving unconfigured
Setting up pptp-linux (1.7.2-7) ...
Setting up network-manager-pptp (0.9.8.2-1ubuntu2) ...
/usr/sbin/invoke-rc.d: 272: /usr/sbin/invoke-rc.d: cannot create /dev/null: Permission denied
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: cannot create /dev/null: Permission denied
xargs: `/dev/null': Permission denied
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: cannot create /dev/null: Permission denied
xargs: `/dev/null': Permission denied
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: cannot create /dev/null: Permission denied
xargs: `/dev/null': Permission denied
Setting up network-manager-pptp-gnome (0.9.8.2-1ubuntu2) ...
Errors were encountered while processing:
 network-manager
 gconf2
 network-manager-gnome
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ask for more outputs if appropriate.

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

Bump.

Demoted my own post by commenting on another thread.

moxalt
Desconectado/a
se unió: 06/19/2015

If you really want to try and follow the Live CD+decryption+chroot
route, then by all means feel free, but chrooting into encrypted
partitions can be really finnicky, and that is the cause of all those
weird errors (the chrooting itself, which is hardly ideal, and the
encryption).

There is a far easier way to escape from all this pandemonium. But
first, is your wifi network open, or does it use WEP or WPA? This will
determine the tools required.

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

But
first, is your wifi network open, or does it use WEP or WPA?

Open.

moxalt
Desconectado/a
se unió: 06/19/2015

Wunderbar. That means you can avoid having to configure wpa_supplicant.
Boot the installed system, and (I'm assuming it's in text mode, since
trisquel-mini contains the DE as well) run the following (as root):

ifconfig up

In the vast majority of cases this will be wlan0, so:

ifconfig wlan0 up

If not you can find out by running ifconfig without arguments, and it
will list your network interfaces. Then:

iwconfig wlan0 essid

replacing with the name of your wireless network.

dhclient wlan0

This will assign your computer an IP fetched from a DHCP server, and is
the last step. You should now have a network connection, if your wifi is
open as you say. Try:

apt-get update
apt-get install trisquel-mini

and see if it now works.

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

Success! I now have WiFi. I'm hoping that Trisquel Mini will appear when I reboot.

I had strange messages when I booted my computer. They looked quite bad. The dmesg output is attached.

# ifconfig up
up: error fetching interface information: Device not found

However, ifconfig wlan0 up did work.

# ifconfig wlan0 essid ATT2G3X2z5
Error for wireless request "Set ESSID" (8B1A) :
     SET failed on device wlan0 ; Operation already in progress.

Ping to example.net succeeded.

AdjuntoTamaño
dmesg_output_20150620T1624-0500.txt 124.18 KB
moxalt
Desconectado/a
se unió: 06/19/2015

> # ifconfig wlan0 essid ATT2G3X2z5
> Error for wireless request "Set ESSID" (8B1A) :
> SET failed on device wlan0 ; Operation already in progress.

You probably have some sort of WLAN autoconnection set up. I didn't know
Trisquel did that. By the way, it's iwconfig for this step, not
ifconfig.

Anyway, congratulations on getting it working. You'll have to tell me
whether Trisquel Mini did indeed appear on boot.

PS. You mentioned attached dmesg output- there were no attachments. Are
you sure you sent some? Maybe Drupal stripped them.

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

https://u.teknik.io/WtARxF.png

Rebooting. I hope Trisquel Mini shows up.

If not, I'll have a nice burger to cheer me up.

moxalt
Desconectado/a
se unió: 06/19/2015

Sorry. I'm doing all of this through the mailing lists- when you said
attachment I was expecting to find and *e-mail* attachment. Sorry.

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

'sudo apt-get remove trisquel-mini' did not make you lose Wifi support. It is a meta-package. It does nothing by itself. Maybe you ran 'sudo apt-get autoremove' afterwards and confirmed the remotion of packages that should have been kept.

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

yes