You are not logged in.

#1 2012-02-12 17:59:43

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Cannot log in after upgrade

Hi I'm a newbie to Arch but used Ubuntu for many years. It appears that I've got a borked upgrade so if anyone can suggest how to solve this I would be most grateful!


I installed hunspell.en for use with libreoffice. For some reason appset-qt upgraded some other packages too

After closing libreoffice, it wouldn't start again.

I then found that I couldn't log in, even after a reboot. kdm crashed then leaving me at the slim login screen. Using slim, openbox failed to start too.


So I then tried using the maintenance mode. I tried the commands startx, kdm, xinit, all started but then failed.

I tried to  start NetworkManager and do a system upgrade but NetworkManager also crashed.

The one persistent error message seems to be this: -

error while loading shared library    libpcre.so.1 cannot open shared object

So I guess without a network connection I need to download a working version of the package which provides libpcre.so.1.

So, is this the right course of action? Many thanks, p.

Offline

#2 2012-02-12 18:05:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot log in after upgrade

There was a pcre rebuild recently and it seems something went wrong on your system. Is the console working for the regular user? You don't need X to try to fix this.

I'm not sure if you only need to update pcre or some other packages too.

Offline

#3 2012-02-12 18:24:29

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot log in after upgrade

Hi,

Thanks for the reply.

I've just downloaded and installed the last version of pcre (used my Ubuntu partition ;-) ) and I'm able to log-in again. Not sure if everything is right yet but fingers crossed


Many thanks,

P

Offline

#4 2012-02-12 18:35:35

n0stradamus
Member
Registered: 2010-11-08
Posts: 94
Website

Re: Cannot log in after upgrade

As karol said, you don't need X to fix the problem.
If you are confident enough with the commandline, you can try the following steps:

  • At system startup select the Arch Linux entry in Grub and press 'e'. Append a '1' to the kernel commandline (the line with '/vmlinuz'-stuff)

  • Your system will start up in single-user mode and ask you for the root password. Enter it and start up your network:

    # rc.d start network

    If you don't use the network scripts you'll need to start the network manager of your choice of course.

  • Having done that, start a system upgrade, reinstalling pcre in the process

    # pacman -Syyu pcre
  • Wait for the update to complete and log out of the single-user mode. Your system will start up as it normally would and hopefully be usable again

Hopefully that fixes it!

EDIT: Looks like someone was faster big_smile

Last edited by n0stradamus (2012-02-12 18:36:07)

Offline

#5 2012-02-12 18:43:22

pepedopolous
Member
Registered: 2012-02-12
Posts: 86

Re: Cannot log in after upgrade

Hi,

Thanks again. I did try to start NetworkManager but the problem is that it threw up the same error message (i'm ok with the command line but i'm used to using NM). I'm loving Arch but I'm learning quick that upgrades are dangerous!

Offline

#6 2012-02-13 08:33:24

senft
Member
Registered: 2012-02-13
Posts: 13

Re: Cannot log in after upgrade

Reinstalling pcre (or lib32-pcre) didn't do the trick for me. I had to do a

ln -s /usr/lib/libpcre.so.1 /usr/lib/libpcre.so.0

Offline

#7 2012-02-13 09:36:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot log in after upgrade

senft wrote:

Reinstalling pcre (or lib32-pcre) didn't do the trick for me. I had to do a

ln -s /usr/lib/libpcre.so.1 /usr/lib/libpcre.so.0

Why? Which packages required such move?

Offline

#8 2012-02-13 10:56:35

senft
Member
Registered: 2012-02-13
Posts: 13

Re: Cannot log in after upgrade

Not sure if it was X itself or i3 (i3-git).

Offline

#9 2012-02-13 10:57:32

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 770

Re: Cannot log in after upgrade

I have had a similar problem - in that I couldn't start Eterm because libpcre.so.1 wasn't found.  Creating the link described above fixed the problem.

Offline

#10 2012-02-13 11:13:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot log in after upgrade

You should rebuild i3-git for the new pcre library. symlinking is not advisable and shouldn't be necessary.

Offline

#11 2012-02-13 13:32:45

mr_comic
Member
From: México
Registered: 2011-02-20
Posts: 52
Website

Re: Cannot log in after upgrade

I came with the same solution, the symlinking, but I want to know which would be the best solution? I couldn't use any X app because of that error.

Offline

#12 2012-02-13 13:51:31

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Cannot log in after upgrade

Symlinking is _never_ the real solution. Updating/rebuilding the app/lib that links against the old .so is.
Or if you have an app/lib linking against the new .so, while you have the old one installed, then update the lib providing the .so.

Short story: partial updates are bad, don't do them.

Last edited by Mr.Elendig (2012-02-13 13:55:22)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#13 2012-02-13 19:11:18

jono
Member
Registered: 2012-01-03
Posts: 13

Re: Cannot log in after upgrade

I can confirm I have the same problem. Both on my desktop and in a virtual machine. I made the symlink as a workaround. I would rather not do this but many apps depend on it.

Offline

#14 2012-02-14 00:43:47

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Cannot log in after upgrade

post output of pacman -Qs glib2


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#15 2012-02-14 03:58:46

mr_comic
Member
From: México
Registered: 2011-02-20
Posts: 52
Website

Re: Cannot log in after upgrade

So glib IS the problem? Wow... I'm using the custom glib2 from Unity by chenxiaolong.

Offline

#16 2012-02-14 06:40:01

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Cannot log in after upgrade

You have to rebuild it against the new pcre. When you use non-official packages you have to keep track of them and rebuild when libs they link against gets updated.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#17 2012-02-14 15:08:18

jono
Member
Registered: 2012-01-03
Posts: 13

Re: Cannot log in after upgrade

Mr.Elendig wrote:

post output of pacman -Qs glib2

$ pacman -Qs glib2
local/glib2 2.31.0-1
    Common C routines used by GTK+ and other libs

then I did

$ pacman -S glib2
and it installed glib2 2.30

Realized I had upgraded glib2 and gtk3 to development branches a while back. So I just reinstalled those two and removed my symlink. Things are now working as they should. Thanks.

Offline

Board footer

Powered by FluxBB