LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   NetworkManager broken in current (https://www.linuxquestions.org/questions/slackware-14/networkmanager-broken-in-current-4175455403/)

yenn 03-24-2013 05:09 PM

NetworkManager broken in current
 
Latest upgrade (Sat Mar 23 22:49:52 UTC 2013) of network manager's gtk applet broke it's gui. Now I can't modify network connections because these windows never appears. It shows error instead:

Code:

(nm-connection-editor:4671): Gtk-WARNING **: Unknown property: GtkComboBox.margin-left

(nm-connection-editor:4671): Gtk-WARNING **: Unknown property: GtkComboBox.margin-bottom

(nm-connection-editor:4671): Gtk-WARNING **: Unknown property: GtkCheckButton.margin-bottom

(nm-connection-editor:4671): Gtk-WARNING **: Unknown property: GtkBox.valign

(nm-connection-editor:4671): Gtk-WARNING **: Unknown property: GtkBox.vexpand

(nm-connection-editor:4671): GLib-GObject-ERROR **: cannot create instance of abstract (non-instantiatable) type `GtkBox'

According to nm-applet AUR package, simple replacement in .ui files fix this:

Code:

sed -i 's/GtkBox/GtkVBox/g' src/connection-editor/ce-page-general.ui
sed -i 's/GtkBox/GtkVBox/g' src/connection-editor/nm-connection-editor.ui

I regularly use Wicd, but from time to time I need to connect to VPN and so far Wicd can't be used with openVPN, so I'm stuck with NetworkManager.

Second problem I encountered after upgrade is that NetworkManager seems unable to connect to wired network. Wicd and dhcpcd works fine.

I tried watching logs, but didn't find anything usefull.

yenn 03-24-2013 06:12 PM

Quote:

Originally Posted by yenn (Post 4917935)

Code:

sed -i 's/GtkBox/GtkVBox/g' src/connection-editor/ce-page-general.ui
sed -i 's/GtkBox/GtkVBox/g' src/connection-editor/nm-connection-editor.ui


I just rebuild network-manager-applet and these replacement fixed it.

Quote:

Originally Posted by yenn (Post 4917935)
Second problem I encountered after upgrade is that NetworkManager seems unable to connect to wired network. Wicd and dhcpcd works fine.

I tried watching logs, but didn't find anything usefull.

I looked into logs again and noticed error with DHCP. I killed running dhcpcd process and suddenly it works!

spiritual_fraud 03-24-2013 11:20 PM

I'm getting a different error:

Code:

symbol lookup error: /libnm-util.so.2: undefined symbol: g_type_ensure
Also modemmanager-0.6.0.0 doesn't seem to work had to downgrade to 0.5.2

asme 03-24-2013 11:58 PM

tonight I upgraded slackware-current, and ended up with the same error and NetworkManager could not work.

I then manually installed NetworkManager-0.9.8.0-i486-1.txz and got the following information.

......
Executing install script for NetworkManager-0.9.8.0-i486-1.txz.
Starting NetworkManager daemon: /usr/sbin/NetworkManager
/usr/sbin/NetworkManager: symbol lookup error: /usr/lib/libnm-util.so.2: undefined symbol: g_type_ensure
Package NetworkManager-0.9.8.0-i486-1.txz installed.


Quote:

Originally Posted by spiritual_fraud (Post 4918083)
I'm getting a different error:

Code:

symbol lookup error: /libnm-util.so.2: undefined symbol: g_type_ensure
Also modemmanager-0.6.0.0 doesn't seem to work had to downgrade to 0.5.2


Alien Bob 03-25-2013 06:39 AM

Quote:

Originally Posted by asme (Post 4918095)
tonight I upgraded slackware-current, and ended up with the same error and NetworkManager could not work.

I then manually installed NetworkManager-0.9.8.0-i486-1.txz and got the following information.

......
Executing install script for NetworkManager-0.9.8.0-i486-1.txz.
Starting NetworkManager daemon: /usr/sbin/NetworkManager
/usr/sbin/NetworkManager: symbol lookup error: /usr/lib/libnm-util.so.2: undefined symbol: g_type_ensure
Package NetworkManager-0.9.8.0-i486-1.txz installed.

Everyone who upgrades his or her slackware-current after the 23-march update should be aware that the upgraded NetworkManager package depends on another upgraded package: l/gdk-pixbuf2 .
You will experience a nasty problem when upgrading NetworkManager first: this will kill your network connection and you will have to install l/gdk-pixbuf2 too before you can get a network connection again.
If you are using slackpkg for the upgrade then you will be affected by this: since slackpkg works alphabetically, NetworkManager will come before all the rest and you will notice that slackpkg is unable to upgrade any of these other packages after NetworkManager... I fixed that on my PC by using /etc/rc.d/rc.inet1.conf to define a configuration for my eth0, then ran "/etc/rc.d/rc.inet1 eth0_restart" and then re-ran "slackpkg upgrade-all".

Eric

markush 03-25-2013 07:00 AM

Quote:

Originally Posted by Alien Bob (Post 4918278)
...
You will experience a nasty problem when upgrading NetworkManager first: this will kill your network connection and you will have to install l/gdk-pixbuf2 too before you can get a network connection again.
If you are using slackpkg for the upgrade then you will be affected by this: since slackpkg works alphabetically, NetworkManager will come before all the rest and you will notice that slackpkg is unable to upgrade any of these other packages after NetworkManager... I fixed that on my PC by using /etc/rc.d/rc.inet1.conf to define a configuration for my eth0, then ran "/etc/rc.d/rc.inet1 eth0_restart" and then re-ran "slackpkg upgrade-all".
...

After having similar problems last year with an update of wget, I have changed /etc/slackpkg/slackpkg.conf
Code:

...
# If this variable is set to "on", all files will be downloaded before the
# requested operation (install or upgrade) is performed.  If set to "off",
# then the files will be downloaded and the operation (install/upgrade)
# performed one by one.  Default=off
DOWNLOAD_ALL=on
...

now the "upgrade-all" is performed not before all packages are downloaded.

Markus

tty13 03-25-2013 07:33 AM

great point markus

and I would like to add that people check the changelog for additions to the l(L) series and add those before they continue to upgrade with slackpkg.

willysr 03-25-2013 07:38 AM

I solved this problem by having a local mirror first by rsync, and then let slackpkg perform the upgrade locally using http and not local filesystem since i found it faster than using local filesystem (file://)

fsauer 03-25-2013 07:48 AM

Quote:

Originally Posted by Alien Bob (Post 4918278)
Everyone who upgrades his or her slackware-current after the 23-march update should be aware that the upgraded NetworkManager package depends on another upgraded package: l/gdk-pixbuf2 .
You will experience a nasty problem when upgrading NetworkManager first: this will kill your network connection and you will have to install l/gdk-pixbuf2 too before you can get a network connection again.
Eric

Thank you Eric, but...
Unfortunately, installing the new gdk-pixbuf2 did not solve the problem with the unknown g_type_ensure.

Further checking identified glib2 as the culprit. Upgrading l/glib2-2.34.3-x86_64-1.txz resolved the problem.

Have fun!

Alien Bob 03-25-2013 07:56 AM

Quote:

Originally Posted by fsauer (Post 4918313)
Thank you Eric, but...
Unfortunately, installing the new gdk-pixbuf2 did not solve the problem with the unknown g_type_ensure.

Further checking identified glib2 as the culprit. Upgrading l/glib2-2.34.3-x86_64-1.txz resolved the problem.

Have fun!

Well, you need to upgrade all slackware-current packages anyway :-) Thanks for finding out the actual package dependency.

Eric

allend 03-25-2013 09:29 AM

@Eric - Thanks for pointing out the problem!

My sidestep with my netbook with a WPA2 wireless connection to my router was to:
'/etc/rc.d/rc.networkmanager stop' # Kill the networkmanager daemon.
'pkill wpa_supplicant' # Kill remaining wpa_supplicant process
'rfkill unblock 1' # Unblock wireless LAN interface at index 1 ('rfkill list' for details)
'wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 -Dwext' # Connect using wpa_supplicant (/etc/wpa_supplicant.conf was already in place)
'dhcpcd' # Get IP address via DHCP
'sh /etc/rc.d/rc.firewall' # Put firewall rules in place

The upgrade using the usual slackpkg dance went on without issue and NetworkManager is working without problems.

yenn 03-25-2013 01:20 PM

That's weird, I didn't run into any trouble with gdk-pixbuf2 during upgrade. Just
Code:

slackpkg install-new
slackpkg upgrade-all

and everything worked out of the box. Well, apart from nn-applet. Am I the only one who encountered that issue?

hitest 03-25-2013 07:22 PM

Networkmanager applet rebuilt in today's -current update.

Code:

Mon Mar 25 20:31:21 UTC 2013
a/file-5.11-i486-1.txz:  Upgraded.
  Reverted to file-5.11 to fix segfaults with libmagic.  I'm unable to find
  patches to fix this for either file itself (file-5.14 doesn't help), or
  for affected programs such as nano, so this will have to do for now.
d/llvm-3.2-i486-4.txz:  Rebuilt.
  Added /usr/bin/$ARCH-slackware-linux-{clang,clang++} symlinks.  If these
  are present, LLVM/clang will be used to compile itself.  Other programs
  might need them as well.
xap/network-manager-applet-0.9.8.0-i486-2.txz:  Rebuilt.
  Patched for new version of GTK+.  Thanks to venn.


volkerdi 03-25-2013 08:22 PM

Quote:

Originally Posted by hitest (Post 4918784)
xap/network-manager-applet-0.9.8.0-i486-2.txz: Rebuilt.
Patched for new version of GTK+. Thanks to venn.
[/CODE]

Oops, I see that should have been yenn, not venn. Patching the ChangeLog now. :)

spiritual_fraud 03-25-2013 08:33 PM

It works flawlessly now!
The hint provided by markush is very helpful. Thanks a lot!

yenn 03-26-2013 03:52 PM

Problem solved and I'm mentioned in changelog, yay! :)

Marking this thread as solved.

textillis 07-03-2013 03:22 AM

I think i better start another thread, as my problem is wireless, but GSM wireless.


All times are GMT -5. The time now is 11:35 PM.