You are not logged in.

#1 2016-08-03 09:32:50

iznogud
Member
Registered: 2016-08-03
Posts: 5

[SOLVED] Boot stuck after installing a package

Yesterday I installed Arch and also installed some basic packages (drivers etc.) and also gnome among them. It all worked fine until I installed gnome-extra package. At that point, it rebooted, and now I am stuck at:
[ OK ] Reached target Graphical Interface.
I can open new terminals with ctrl + alt + f2/f3... but I could not find a solution because it says my pacman is in use (all solution I found here were about pacman).

EDIT:
When I call pacman, it says error: could not lock database: File exists (along with other very similar lines).

In case of startx:

_XSERVTransSocketUNIXCreateListener: ... SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE)
Please consult the The X.Org Foundation support
at [url]http://wiki.x.org[/url]
for help
(EE) please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
Invalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable
xinit: server error

Last edited by iznogud (2016-08-04 08:59:11)

Offline

#2 2016-08-03 10:04:37

FlowIt
Member
Registered: 2014-10-25
Posts: 243

Re: [SOLVED] Boot stuck after installing a package

For the pacman lock issue please read the wiki: https://wiki.archlinux.org/index.php/pa … 9.22_error
For the xserver: Do you try to run startx after you reached the graphical target? This won't work. Is it that gdm does not show up, or in case you are not using a display manager the Gnome DE itself does not start? In this case your .xinitrc and your Xorg.0.log would be of help.

Offline

#3 2016-08-03 10:27:56

iznogud
Member
Registered: 2016-08-03
Posts: 5

Re: [SOLVED] Boot stuck after installing a package

I guess I will try deleting db.lck and then updating gnome...
About Xorg.0.log, it says exactly the same as code part of my last post, except last 3 lines. As the matter of xinit, I don't know how to access it (I am quite a newbie to Arch) since nano ~/.xinitrc shows me an empty file.

EDIT: here's /etc/X11/xinit/xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







   xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
   xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







   xrdb -merge "$userresources"

fi

if [ -f $usermodmap" ]; then
   xmodmap "$usermodmap"
fi

#start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ]; then
   for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
      [ -x "$f" ] && . "$f"
   done
   unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

Last edited by iznogud (2016-08-03 10:37:30)

Offline

#4 2016-08-03 10:46:52

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] Boot stuck after installing a package

There's no ~/.xinitrc by default, until you create it yourself: https://wiki.archlinux.org/index.php/Xinit#xinitrc
If you want to start gnome with startx, see: https://wiki.archlinux.org/index.php/GNOME#Manually

iznogud wrote:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)

Did you make sure X server isn't already running? Have you enabled GDM or some other DM?

Offline

#5 2016-08-03 10:56:06

iznogud
Member
Registered: 2016-08-03
Posts: 5

Re: [SOLVED] Boot stuck after installing a package

I did not start X server manually, so it might be already running in case it was automatically started, which might be the case (but totally not sure) since this is all it says when I boot:

starting version 231
/dev/sda3: clean 165109/30236672 files, 3227934/120916737 blocks
[FAILED] Failed to start dhcpcd on enp3s0
See 'systemctl status dhcpcd@enp3s0.service' for details.
[ OK ] Reached target Network.
          Starting Permit User Sessions...
[ OK ] Started Permit User Sessions.
[ OK ] Reached target Multi-User System.
          Starting GNOME Display Manager...
[ OK ] Started GNOME Display Manager.
[ OK ] Reached target Graphical Interface.

EDIT: I tried reinstalling gnome-extra (since that caused all this trouble), and after trying to reinstall it (it said --reinstalling at the end of each line) at the end it said this:

resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/gnome-getting-started-docs-3.20.0-1/desc: No such file or directory
warning: could not fully load metadata for package gnome-getting-started-docs-3.20.0-1
error: failed to prepare transaction (invalid or corrupted package)

Could corrupted package cause all this? Should I try removing it?

Last edited by iznogud (2016-08-03 11:03:41)

Offline

#6 2016-08-03 11:11:02

iznogud
Member
Registered: 2016-08-03
Posts: 5

Re: [SOLVED] Boot stuck after installing a package

Alright, seems like removing gnome-extra fixed stuff, not sure if it's just compatibility issue or the package is really corrupted...
In any case, thanks a lot everyone trying to help! Can be marked as solved unless someone can help with that package.

Offline

#7 2016-08-03 11:48:51

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] Boot stuck after installing a package

well, the db.lck error suggests the installation process got interrupted for some reason, which could lead to corrupted packages on your system.

gnome-extra isn't a package, but package group, i.e. it just installs bunch of packages. Generally I'd not recommend installing the whole group. Just install the packages you actually need.

You should mark the thread solved yourself by editing the first post and prepending [SOLVED] to the title.

Offline

Board footer

Powered by FluxBB