[pacman] Supression accidentelle de paquets (résolu)

Questions et astuces concernant l'installation et la configuration d'archlinux
Avatar de l’utilisateur
lesebas
Chu Ko Nu
Messages : 330
Inscription : ven. 01 févr. 2013, 19:16

[pacman] Supression accidentelle de paquets (résolu)

Message par lesebas »

Salut à tous, hier soir grosse boulette, j'ai voulu supprimer les paquets orphelins et je me suis trompé de commande j'ai tapé :

Code : Tout sélectionner

# pacman -Rns $(pacman -Qqt)
Du coup le système ne démarre plus ! Je me suis chrouté dans le système depuis une cled archlinux et ai tenté la réinstallation complète :

Code : Tout sélectionner

# pacman -Qqn | pacman -S -
Ca reinstalle bien tout mais le système ne démarre pas (ça bloque après le montage des partions et la reconstruction du journal).
Dernière modification par lesebas le sam. 01 févr. 2020, 14:30, modifié 1 fois.
Seb

Archlinux sur AMD64 (xfce / lightdm)
Avatar de l’utilisateur
lesebas
Chu Ko Nu
Messages : 330
Inscription : ven. 01 févr. 2013, 19:16

Re: [pacman] Supression accidentelle de paquets

Message par lesebas »

En reinstallant base et linux depuis le chroot ca redémarre, mais tous les paquets sont à reinstaller un par un!
Seb

Archlinux sur AMD64 (xfce / lightdm)
Avatar de l’utilisateur
lesebas
Chu Ko Nu
Messages : 330
Inscription : ven. 01 févr. 2013, 19:16

Re: [pacman] Supression accidentelle de paquets

Message par lesebas »

Bon j'ai a peu prés tout reinstallé mais lightdm refuse de démarrer, voici les fichiers de lof dans /var/log/lightdm

lightdm.log:

Code : Tout sélectionner

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=1535
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: posix_spawn avoided (fd close requested) 
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.01s] DEBUG: XServer 0: Launching X Server
[+0.01s] DEBUG: Launching process 1541: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.77s] DEBUG: Got signal 10 from process 1541
[+0.77s] DEBUG: XServer 0: Got signal from X server :0
[+0.77s] DEBUG: XServer 0: Connecting to XServer :0
[+0.83s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+0.83s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.83s] DEBUG: Session pid=1565: Started with service 'lightdm-greeter', username 'lightdm'
[+0.86s] DEBUG: Session pid=1565: Authentication complete with return value 0: Success
[+0.86s] DEBUG: Seat seat0: Session authenticated, running command
[+0.86s] DEBUG: Launching process 1568: /usr/bin/numlockx on
[+0.86s] DEBUG: Process 1568 exited with return value 1
[+0.86s] DEBUG: Seat seat0: Exit status of /usr/bin/numlockx on: 1
[+0.86s] DEBUG: Seat seat0: Switching to greeter due to failed setup script
[+0.86s] DEBUG: Seat seat0: Creating greeter session
[+0.86s] DEBUG: Session pid=1569: Started with service 'lightdm-greeter', username 'lightdm'
[+0.86s] DEBUG: Greeter closed communication channel
[+0.86s] DEBUG: Session pid=1565: Exited with return value 0
[+0.86s] DEBUG: Seat seat0: Session stopped
[+0.86s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+0.86s] DEBUG: Seat seat0: Stopping
[+0.86s] DEBUG: Seat seat0: Stopping display server
[+0.86s] DEBUG: Sending signal 15 to process 1541
[+0.86s] DEBUG: Seat seat0: Stopping session
[+0.86s] DEBUG: Session pid=1569: Sending SIGTERM
[+0.86s] DEBUG: Greeter closed communication channel
[+0.86s] DEBUG: Session pid=1569: Terminated with signal 15
[+0.86s] DEBUG: Session: Failed during authentication
[+0.86s] DEBUG: Seat seat0: Stopping session that failed authentication
[+0.86s] DEBUG: Seat seat0: Session stopped
[+1.35s] DEBUG: Process 1541 exited with return value 0
[+1.35s] DEBUG: XServer 0: X server stopped
[+1.35s] DEBUG: Releasing VT 7
[+1.35s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+1.35s] DEBUG: Seat seat0: Display server stopped
[+1.35s] DEBUG: Seat seat0: Stopped
[+1.35s] DEBUG: Required seat has stopped
[+1.35s] DEBUG: Stopping display manager
[+1.35s] DEBUG: Display manager stopped
[+1.35s] DEBUG: Stopping daemon
[+1.35s] DEBUG: Exiting with return value 1
xo.log :

Code : Tout sélectionner

X.Org X Server 1.20.7
X Protocol Version 11, Revision 0
Build Operating System: Linux Arch Linux
Current Operating System: Linux caprea 5.4.15-arch1-1 #1 SMP PREEMPT Sun, 26 Jan 2020 09:48:50 +0000 x86_64
Kernel command line: root=UUID=c171b7f6-8240-4117-b70b-c2e59b811398 rootfstype=ext4 initrd=\EFI\arch\initramfs-linux.img rw iommu=soft nospectre_v2 rcu_nocbs=0-7
Build Date: 14 January 2020  07:13:52AM
 
Current version of pixman: 0.38.4
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb  1 12:45:31 2020
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
(II) Server terminated successfully (0). Closing log file.
Seb

Archlinux sur AMD64 (xfce / lightdm)
Avatar de l’utilisateur
lesebas
Chu Ko Nu
Messages : 330
Inscription : ven. 01 févr. 2013, 19:16

Re: [pacman] Supression accidentelle de paquets

Message par lesebas »

Voila ce que donne le debug :

Code : Tout sélectionner

[louison@caprea ~]$ lightdm --test-mode --debug
[+0.00s] DEBUG: Logging to /home/louison/.cache/lightdm/log/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=1001 PID=3736
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Running in user mode
[+0.00s] DEBUG: Using Xephyr for X servers
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.03s] DEBUG: Seat seat0: Creating display server of type x
[+0.03s] DEBUG: posix_spawn avoided (fd close requested) 
[+0.03s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
[+0.03s] DEBUG: Seat seat0: Starting local X display
[+0.03s] DEBUG: XServer 1: Logging to /home/louison/.cache/lightdm/log/x-1.log
[+0.03s] WARNING: XServer 1: Failed to make authority directory /run/lightdm/root: Permission denied
[+0.03s] DEBUG: XServer 1: Writing X server authority to /run/lightdm/root/:1
[+0.03s] WARNING: XServer 1: Failed to write authority: Failed to open X authority /run/lightdm/root/:1: No such file or directory
[+0.03s] DEBUG: XServer 1: Launching X Server
[+0.03s] DEBUG: Launching process 3741: /usr/bin/Xephyr :1 -seat seat0 -auth /run/lightdm/root/:1 -nolisten tcp
[+0.03s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+0.03s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.03s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.03s] WARNING: Could not enumerate user data directory /var/lib/lightdm-data: Error opening directory '/var/lib/lightdm-data': Permission denied
[+0.21s] DEBUG: Got signal 10 from process 3741
[+0.21s] DEBUG: XServer 1: Got signal from X server :1
[+0.21s] DEBUG: XServer 1: Connecting to XServer :1
[+0.21s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.21s] DEBUG: Session: Not setting XDG_VTNR
[+0.21s] DEBUG: Session pid=3751: Started with service 'lightdm-greeter', username 'louison'
[+0.23s] DEBUG: Session pid=3751: Authentication complete with return value 0: Success
[+0.23s] DEBUG: Seat seat0: Session authenticated, running command
[+0.23s] DEBUG: Launching process 3754: /usr/bin/numlockx on
[+0.23s] DEBUG: Process 3754 exited with return value 1
[+0.23s] DEBUG: Seat seat0: Exit status of /usr/bin/numlockx on: 1
[+0.23s] DEBUG: Seat seat0: Switching to greeter due to failed setup script
[+0.23s] DEBUG: Seat seat0: Creating greeter session
[+0.23s] DEBUG: Session: Not setting XDG_VTNR
[+0.23s] DEBUG: Session pid=3755: Started with service 'lightdm-greeter', username 'louison'
[+0.23s] DEBUG: Greeter closed communication channel
[+0.23s] DEBUG: Session pid=3751: Exited with return value 0
[+0.23s] DEBUG: Seat seat0: Session stopped
[+0.23s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+0.23s] DEBUG: Seat seat0: Stopping
[+0.23s] DEBUG: Seat seat0: Stopping display server
[+0.23s] DEBUG: Sending signal 15 to process 3741
[+0.23s] DEBUG: Seat seat0: Stopping session
[+0.23s] DEBUG: Session pid=3755: Sending SIGTERM
[+0.23s] DEBUG: Greeter closed communication channel
[+0.23s] DEBUG: Session pid=3755: Terminated with signal 15
[+0.23s] DEBUG: Session: Failed during authentication
[+0.23s] DEBUG: Seat seat0: Stopping session that failed authentication
[+0.23s] DEBUG: Seat seat0: Session stopped
[+0.23s] DEBUG: Process 3741 exited with return value 0
[+0.23s] DEBUG: XServer 1: X server stopped
[+0.23s] DEBUG: XServer 1: Removing X server authority /run/lightdm/root/:1
[+0.23s] DEBUG: Seat seat0: Display server stopped
[+0.23s] DEBUG: Seat seat0: Stopped
[+0.23s] DEBUG: Required seat has stopped
[+0.23s] DEBUG: Stopping display manager
[+0.23s] DEBUG: Display manager stopped
[+0.23s] DEBUG: Stopping daemon
[+0.23s] DEBUG: Exiting with return value 1
Seb

Archlinux sur AMD64 (xfce / lightdm)
Avatar de l’utilisateur
lesebas
Chu Ko Nu
Messages : 330
Inscription : ven. 01 févr. 2013, 19:16

Re: [pacman] Supression accidentelle de paquets

Message par lesebas »

Résolu en désinstallant et réinstallant lightdm
Seb

Archlinux sur AMD64 (xfce / lightdm)
Répondre