You are not logged in.

#1 2018-02-14 18:48:00

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

systemd-tmpfiles: error while loading shared libraries: libudev.so.1

Hi everybody!

I do not know how I broke the system. Now I cannot login.

/usr/bin/systemd-tmpfiles: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory

This output is from Linux Mint I have on another partition. I can 'chroot' from here.
I need help!

Thank you!

Edit:

vb@hp ~ $ su root
Password: 
hp vb # fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0005a151

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    33320959    16659456   83  Linux
/dev/sda2        33320960   399439871   183059456    7  HPFS/NTFS/exFAT
/dev/sda3       399439872   446341119    23450624    7  HPFS/NTFS/exFAT
/dev/sda4       446341120   976248831   264953856   83  Linux
hp vb # mount /dev/sda4 /mnt/sda4
hp vb # cd /mnt/sda4
hp sda4 # mount -t proc proc proc/
hp sda4 # mount --rbind /sys sys/
hp sda4 # mount --rbind /dev dev/
hp sda4 # chroot /mnt/sda4
[root@hp /]# pacman -Syyu
:: Synchronizing package databases...
 core                                      127.8 KiB  1278K/s 00:00 [######################################] 100%
 extra                                    1595.7 KiB  2.58M/s 00:01 [######################################] 100%
 community                                   4.1 MiB  3.94M/s 00:01 [######################################] 100%
 multilib                                  166.6 KiB  3.70M/s 00:00 [######################################] 100%
:: Starting full system upgrade...
warning: smplayer: ignoring package upgrade (0.8.6-1 => 18.2.0-1)
warning: virtualbox: ignoring package upgrade (5.2.4-1 => 5.2.6-2)
warning: virtualbox-host-dkms: ignoring package upgrade (5.2.4-1 => 5.2.6-2)
warning: wine: ignoring package upgrade (3.0rc6-1 => 3.1-1)
 there is nothing to do

Last edited by amaro (2018-02-14 18:52:12)

Offline

#2 2018-02-14 19:03:51

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

After you chroot in what is the output of

pacman -Qkk libsystemd

Offline

#3 2018-02-14 19:09:48

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

[root@hp /]# pacman -Qkk libsystemd
warning: libsystemd: /usr/lib/libudev.so.1 (No such file or directory)
warning: libsystemd: /usr/lib/libudev.so.1.6.9 (Input/output error)
libsystemd: 12 total files, 2 altered files

Offline

#4 2018-02-14 19:24:39

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

reinstall libsystemd and see if that resolves the issue.

Offline

#5 2018-02-14 19:26:56

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

I tried

[root@hp /]# pacman -S libsystemd lib32-systemd
warning: libsystemd-237.31-1 is up to date -- reinstalling
warning: lib32-systemd-237.31-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) lib32-systemd-237.31-1  libsystemd-237.31-1

Total Installed Size:  2.97 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                      [######################################] 100%
(2/2) checking package integrity                                    [######################################] 100%
(2/2) loading package files                                         [######################################] 100%
(2/2) checking for file conflicts                                   [######################################] 100%
:: Processing package changes...
(1/2) reinstalling libsystemd                                       [######################################] 100%
warning: warning given when extracting /usr/lib/libudev.so.1.6.9 (Could not stat /usr/lib/libudev.so.1.6.9)
(2/2) reinstalling lib32-systemd                                    [######################################] 100%
ldconfig: Cannot lstat /usr/lib/libudev.so.1.6.9: Input/output error
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Offline

#6 2018-02-14 19:29:41

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

If the output of pacman -Qkk libsystemd is the same try Pacman#Pacman_crashes_during_an_upgrade

Offline

#7 2018-02-14 19:32:46

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

[root@hp /]# pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -Syyu
:: Synchronizing package databases...
 core                                      127.8 KiB  1452K/s 00:00 [######################################] 100%
 extra                                    1595.7 KiB  3.39M/s 00:00 [######################################] 100%
 community                                   4.1 MiB  2.48M/s 00:02 [######################################] 100%
 multilib                                  166.6 KiB  2.26M/s 00:00 [######################################] 100%
:: Starting full system upgrade...
 there is nothing to do
[root@hp /]# pacman -Qkk libsystemd
warning: libsystemd: /usr/lib/libudev.so.1 (No such file or directory)
warning: libsystemd: /usr/lib/libudev.so.1.6.9 (Input/output error)
libsystemd: 12 total files, 2 altered files

Offline

#8 2018-02-14 19:35:25

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -S libsystemd lib32-systemd

Offline

#9 2018-02-14 19:38:30

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

[root@hp /]# pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S libsystemd
resolving dependencies...
looking for conflicting packages...

Packages (16) attr-2.4.47-3  bash-4.4.018-1  filesystem-2017.10-2  gcc-libs-7.3.0-1  glibc-2.26-11
              iana-etc-20180131-1  libcap-2.25-1  libgcrypt-1.8.2-1  libgpg-error-1.27-1
              linux-api-headers-4.14.8-1  lz4-1:1.8.1.2-1  ncurses-6.0+20170902-3  readline-7.0.003-1
              tzdata-2018c-1  xz-5.2.3-1  libsystemd-237.31-1

Total Download Size:    31.46 MiB
Total Installed Size:  155.86 MiB

:: Proceed with installation? [Y/n] y
warning: no /mnt/var/cache/pacman/pkg/ cache exists, creating...
:: Retrieving packages...
 linux-api-headers-4.14.8-1-any            915.1 KiB  1972K/s 00:00 [######################################] 100%
 tzdata-2018c-1-any                        238.4 KiB  2.53M/s 00:00 [######################################] 100%
 iana-etc-20180131-1-any                   362.6 KiB  2.77M/s 00:00 [######################################] 100%
 filesystem-2017.10-2-x86_64                 7.7 KiB  1928K/s 00:00 [######################################] 100%
 glibc-2.26-11-x86_64                        8.6 MiB  2.12M/s 00:04 [######################################] 100%
 attr-2.4.47-3-x86_64                       69.7 KiB  5.67M/s 00:00 [######################################] 100%
 libcap-2.25-1-x86_64                       37.9 KiB  3.08M/s 00:00 [######################################] 100%
 gcc-libs-7.3.0-1-x86_64                    17.3 MiB  3.02M/s 00:06 [######################################] 100%
 ncurses-6.0+20170902-3-x86_64            1059.4 KiB  3.27M/s 00:00 [######################################] 100%
 readline-7.0.003-1-x86_64                 294.7 KiB  2.66M/s 00:00 [######################################] 100%
 bash-4.4.018-1-x86_64                    1430.2 KiB  3.56M/s 00:00 [######################################] 100%
 libgpg-error-1.27-1-x86_64                150.4 KiB  4.08M/s 00:00 [######################################] 100%
 libgcrypt-1.8.2-1-x86_64                  483.8 KiB  4.07M/s 00:00 [######################################] 100%
 lz4-1:1.8.1.2-1-x86_64                     83.8 KiB  3.41M/s 00:00 [######################################] 100%
 xz-5.2.3-1-x86_64                         229.1 KiB  4.00M/s 00:00 [######################################] 100%
 libsystemd-237.31-1-x86_64                352.5 KiB  3.74M/s 00:00 [######################################] 100%
(16/16) checking keys in keyring                                    [######################################] 100%
(16/16) checking package integrity                                  [######################################] 100%
(16/16) loading package files                                       [######################################] 100%
(16/16) checking for file conflicts                                 [######################################] 100%
:: Processing package changes...
( 1/16) installing linux-api-headers                                [######################################] 100%
( 2/16) installing tzdata                                           [######################################] 100%
( 3/16) installing iana-etc                                         [######################################] 100%
( 4/16) installing filesystem                                       [######################################] 100%
( 5/16) installing glibc                                            [######################################] 100%
Optional dependencies for glibc
    gd: for memusagestat
( 6/16) installing attr                                             [######################################] 100%
( 7/16) installing libcap                                           [######################################] 100%
( 8/16) installing gcc-libs                                         [######################################] 100%
( 9/16) installing ncurses                                          [######################################] 100%
(10/16) installing readline                                         [######################################] 100%
(11/16) installing bash                                             [######################################] 100%
Optional dependencies for bash
    bash-completion: for tab completion
(12/16) installing libgpg-error                                     [######################################] 100%
(13/16) installing libgcrypt                                        [######################################] 100%
(14/16) installing lz4                                              [######################################] 100%
(15/16) installing xz                                               [######################################] 100%
(16/16) installing libsystemd                                       [######################################] 100%
[root@hp /]# pacman -Qkk libsystemd
warning: libsystemd: /usr/lib/libudev.so.1 (No such file or directory)
warning: libsystemd: /usr/lib/libudev.so.1.6.9 (Input/output error)
libsystemd: 12 total files, 2 altered files
[root@hp /]# pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S  lib32-systemd
resolving dependencies...
looking for conflicting packages...

Packages (51) acl-2.2.52-4  argon2-20171227-3  bzip2-1.0.6-7  coreutils-8.29-1  cracklib-2.9.6-1
              cryptsetup-2.0.1-1  db-5.3.28-3  dbus-1.12.4-1  device-mapper-2.02.177-1  e2fsprogs-1.43.9-1
              expat-2.2.5-1  gdbm-1.14.1-1  gmp-6.1.2-1  hwids-20171003-1  iptables-1.6.1-2  json-c-0.13-1
              kbd-2.0.4-1  keyutils-1.5.10-1  kmod-24-1  krb5-1.16-1  lib32-attr-2.4.47-2
              lib32-gcc-libs-7.3.0-1  lib32-glibc-2.26-11  lib32-libcap-2.25-1  lib32-libgcrypt-1.8.1-1
              lib32-libgpg-error-1.27-1  lib32-xz-5.2.3-1  libcap-ng-0.7.8-1  libelf-0.170-1  libidn-1.33-2
              libldap-2.4.45-4  libmnl-1.0.4-1  libnftnl-1.0.9-1  libnl-3.4.0-1  libpcap-1.8.1-2
              libsasl-2.1.26-12  libseccomp-2.3.2-2  libtirpc-1.0.2-3  libusb-1.0.21-2  libutil-linux-2.31.1-1
              openssl-1.1.0.g-1  pam-1.3.0-1  pambase-20171006-1  pcre2-10.30-1  perl-5.26.1-2  popt-1.16-9
              shadow-4.5-4  systemd-237.31-1  util-linux-2.31.1-1  zlib-1:1.2.11-2  lib32-systemd-237.31-1

Total Download Size:    55.68 MiB
Total Installed Size:  230.54 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 lib32-glibc-2.26-11-x86_64                  3.1 MiB  2.83M/s 00:01 [######################################] 100%
 lib32-gcc-libs-7.3.0-1-x86_64              14.8 MiB  2.96M/s 00:05 [######################################] 100%
 acl-2.2.52-4-x86_64                       132.1 KiB  1101K/s 00:00 [######################################] 100%
 device-mapper-2.02.177-1-x86_64           266.8 KiB  2.71M/s 00:00 [######################################] 100%
 popt-1.16-9-x86_64                         63.7 KiB  3.89M/s 00:00 [######################################] 100%
 libutil-linux-2.31.1-1-x86_64             347.5 KiB  1524K/s 00:00 [######################################] 100%
 json-c-0.13-1-x86_64                       44.9 KiB  2.74M/s 00:00 [######################################] 100%
 argon2-20171227-3-x86_64                   31.5 KiB  7.69M/s 00:00 [######################################] 100%
 cryptsetup-2.0.1-1-x86_64                 339.3 KiB  2.59M/s 00:00 [######################################] 100%
 expat-2.2.5-1-x86_64                       92.7 KiB   859K/s 00:00 [######################################] 100%
 dbus-1.12.4-1-x86_64                      290.6 KiB  3.08M/s 00:00 [######################################] 100%
 libmnl-1.0.4-1-x86_64                      10.5 KiB  2.56M/s 00:00 [######################################] 100%
 libnftnl-1.0.9-1-x86_64                    57.7 KiB  2.35M/s 00:00 [######################################] 100%
 libnl-3.4.0-1-x86_64                      352.6 KiB  3.19M/s 00:00 [######################################] 100%
 libusb-1.0.21-2-x86_64                     54.1 KiB  4.40M/s 00:00 [######################################] 100%
 libpcap-1.8.1-2-x86_64                    216.9 KiB  2.79M/s 00:00 [######################################] 100%
 iptables-1.6.1-2-x86_64                   323.8 KiB  3.76M/s 00:00 [######################################] 100%
 zlib-1:1.2.11-2-x86_64                     81.7 KiB  3.32M/s 00:00 [######################################] 100%
 cracklib-2.9.6-1-x86_64                   249.9 KiB  2.91M/s 00:00 [######################################] 100%
 e2fsprogs-1.43.9-1-x86_64                 979.7 KiB  3.03M/s 00:00 [######################################] 100%
 gdbm-1.14.1-1-x86_64                      152.4 KiB  2.86M/s 00:00 [######################################] 100%
 db-5.3.28-3-x86_64                       1097.6 KiB  3.12M/s 00:00 [######################################] 100%
 perl-5.26.1-2-x86_64                       13.6 MiB  3.44M/s 00:04 [######################################] 100%
 openssl-1.1.0.g-1-x86_64                    2.9 MiB  2.79M/s 00:01 [######################################] 100%
 libsasl-2.1.26-12-x86_64                  135.8 KiB  3.31M/s 00:00 [######################################] 100%
 libldap-2.4.45-4-x86_64                   284.0 KiB  3.01M/s 00:00 [######################################] 100%
 keyutils-1.5.10-1-x86_64                   67.5 KiB  3.30M/s 00:00 [######################################] 100%
 krb5-1.16-1-x86_64                       1168.1 KiB  2.30M/s 00:00 [######################################] 100%
 libtirpc-1.0.2-3-x86_64                   176.0 KiB  2.05M/s 00:00 [######################################] 100%
 pambase-20171006-1-any                      2.9 KiB  0.00B/s 00:00 [######################################] 100%
 pam-1.3.0-1-x86_64                        609.7 KiB  1752K/s 00:00 [######################################] 100%
 kbd-2.0.4-1-x86_64                       1119.9 KiB  1806K/s 00:01 [######################################] 100%
 kmod-24-1-x86_64                          109.8 KiB  1614K/s 00:00 [######################################] 100%
 hwids-20171003-1-any                      347.1 KiB  1736K/s 00:00 [######################################] 100%
 libidn-1.33-2-x86_64                      208.6 KiB  1630K/s 00:00 [######################################] 100%
 bzip2-1.0.6-7-x86_64                       53.7 KiB  3.28M/s 00:00 [######################################] 100%
 libelf-0.170-1-x86_64                     340.6 KiB  2.25M/s 00:00 [######################################] 100%
 libseccomp-2.3.2-2-x86_64                  68.4 KiB  5.57M/s 00:00 [######################################] 100%
 shadow-4.5-4-x86_64                      1074.3 KiB  2.36M/s 00:00 [######################################] 100%
 gmp-6.1.2-1-x86_64                        408.5 KiB  2.37M/s 00:00 [######################################] 100%
 coreutils-8.29-1-x86_64                     2.2 MiB  2.18M/s 00:01 [######################################] 100%
 util-linux-2.31.1-1-x86_64               1946.4 KiB  2.95M/s 00:01 [######################################] 100%
 pcre2-10.30-1-x86_64                      957.3 KiB  3.49M/s 00:00 [######################################] 100%
 systemd-237.31-1-x86_64                     4.3 MiB  3.24M/s 00:01 [######################################] 100%
 libcap-ng-0.7.8-1-x86_64                   34.9 KiB  2.13M/s 00:00 [######################################] 100%
 lib32-attr-2.4.47-2-x86_64                  8.4 KiB  0.00B/s 00:00 [######################################] 100%
 lib32-libcap-2.25-1-x86_64                  9.0 KiB  0.00B/s 00:00 [######################################] 100%
 lib32-libgpg-error-1.27-1-x86_64           35.0 KiB  2.85M/s 00:00 [######################################] 100%
 lib32-libgcrypt-1.8.1-1-x86_64            352.9 KiB  3.45M/s 00:00 [######################################] 100%
 lib32-xz-5.2.3-1-x86_64                    80.1 KiB  3.91M/s 00:00 [######################################] 100%
 lib32-systemd-237.31-1-x86_64             366.5 KiB  3.89M/s 00:00 [######################################] 100%
(51/51) checking keys in keyring                                    [######################################] 100%
(51/51) checking package integrity                                  [######################################] 100%
(51/51) loading package files                                       [######################################] 100%
(51/51) checking for file conflicts                                 [######################################] 100%
:: Processing package changes...
( 1/51) installing lib32-glibc                                      [######################################] 100%
( 2/51) installing lib32-gcc-libs                                   [######################################] 100%
( 3/51) installing lib32-attr                                       [######################################] 100%
( 4/51) installing lib32-libcap                                     [######################################] 100%
( 5/51) installing lib32-libgpg-error                               [######################################] 100%
( 6/51) installing lib32-libgcrypt                                  [######################################] 100%
( 7/51) installing lib32-xz                                         [######################################] 100%
( 8/51) installing acl                                              [######################################] 100%
( 9/51) installing device-mapper                                    [######################################] 100%
(10/51) installing popt                                             [######################################] 100%
(11/51) installing libutil-linux                                    [######################################] 100%
(12/51) installing json-c                                           [######################################] 100%
(13/51) installing argon2                                           [######################################] 100%
(14/51) installing cryptsetup                                       [######################################] 100%
(15/51) installing expat                                            [######################################] 100%
(16/51) installing dbus                                             [######################################] 100%
(17/51) installing libmnl                                           [######################################] 100%
(18/51) installing libnftnl                                         [######################################] 100%
(19/51) installing libnl                                            [######################################] 100%
(20/51) installing libusb                                           [######################################] 100%
(21/51) installing libpcap                                          [######################################] 100%
(22/51) installing iptables                                         [######################################] 100%
(23/51) installing zlib                                             [######################################] 100%
(24/51) installing cracklib                                         [######################################] 100%
(25/51) installing e2fsprogs                                        [######################################] 100%
(26/51) installing gdbm                                             [######################################] 100%
(27/51) installing db                                               [######################################] 100%
(28/51) installing perl                                             [######################################] 100%
(29/51) installing openssl                                          [######################################] 100%
Optional dependencies for openssl
    ca-certificates
(30/51) installing libsasl                                          [######################################] 100%
(31/51) installing libldap                                          [######################################] 100%
(32/51) installing keyutils                                         [######################################] 100%
(33/51) installing krb5                                             [######################################] 100%
(34/51) installing libtirpc                                         [######################################] 100%
(35/51) installing pambase                                          [######################################] 100%
(36/51) installing pam                                              [######################################] 100%
(37/51) installing kbd                                              [######################################] 100%
(38/51) installing kmod                                             [######################################] 100%
(39/51) installing hwids                                            [######################################] 100%
(40/51) installing libidn                                           [######################################] 100%
(41/51) installing bzip2                                            [######################################] 100%
(42/51) installing libelf                                           [######################################] 100%
(43/51) installing libseccomp                                       [######################################] 100%
(44/51) installing shadow                                           [######################################] 100%
(45/51) installing gmp                                              [######################################] 100%
(46/51) installing coreutils                                        [######################################] 100%
(47/51) installing libcap-ng                                        [######################################] 100%
(48/51) installing util-linux                                       [######################################] 100%
Optional dependencies for util-linux
    python: python bindings to libmount
(49/51) installing pcre2                                            [######################################] 100%
(50/51) installing systemd                                          [######################################] 100%
Failed to generate randomized : Function not implemented
Creating group sys with gid 3.
Creating group mem with gid 8.
Creating group ftp with gid 11.
Creating group mail with gid 12.
Creating group log with gid 19.
Creating group smmsp with gid 25.
Creating group proc with gid 26.
Creating group games with gid 50.
Creating group lock with gid 54.
Creating group network with gid 90.
Creating group floppy with gid 94.
Creating group scanner with gid 96.
Creating group power with gid 98.
Creating group adm with gid 999.
Creating group wheel with gid 998.
Creating group kmem with gid 997.
Creating group tty with gid 5.
Creating group utmp with gid 996.
Creating group audio with gid 995.
Creating group optical with gid 994.
Creating group uucp with gid 993.
Creating group disk with gid 992.
Creating group input with gid 991.
Creating group kvm with gid 990.
Creating group lp with gid 989.
Creating group render with gid 988.
Creating group storage with gid 987.
Creating group video with gid 986.
Creating group users with gid 985.
Creating group systemd-journal with gid 984.
Creating group rfkill with gid 983.
Creating group daemon with gid 982.
Creating group bin with gid 981.
Creating group bin with gid 1.
Creating user bin (n/a) with uid 1 and gid 1.
Creating group daemon with gid 2.
Creating user daemon (n/a) with uid 2 and gid 2.
Creating group mail with gid 980.
Creating user mail (n/a) with uid 980 and gid 980.
Creating group ftp with gid 14.
Creating user ftp (n/a) with uid 14 and gid 14.
Creating group http with gid 33.
Creating user http (n/a) with uid 33 and gid 33.
Creating group nobody with gid 65534.
Creating user nobody (Nobody) with uid 65534 and gid 65534.
Creating group dbus with gid 81.
Creating user dbus (System Message Bus) with uid 81 and gid 81.
Creating group systemd-journal-remote with gid 979.
Creating user systemd-journal-remote (systemd Journal Remote) with uid 979 and gid 979.
Creating group systemd-network with gid 978.
Creating user systemd-network (systemd Network Management) with uid 978 and gid 978.
Creating group systemd-resolve with gid 977.
Creating user systemd-resolve (systemd Resolver) with uid 977 and gid 977.
Creating group systemd-coredump with gid 976.
Creating user systemd-coredump (systemd Core Dumper) with uid 976 and gid 976.
Creating group uuidd with gid 68.
Creating user uuidd (n/a) with uid 68 and gid 68.
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /usr/lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    libmicrohttpd: remote journald capabilities
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries
    polkit: allow administration as unprivileged user
(51/51) installing lib32-systemd                                    [######################################] 100%
:: Running post-transaction hooks...
(1/5) Warn about old perl modules
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_MEASUREMENT = "bg_BG.UTF-8",
	LC_PAPER = "bg_BG.UTF-8",
	LC_MONETARY = "bg_BG.UTF-8",
	LC_NAME = "bg_BG.UTF-8",
	LC_ADDRESS = "bg_BG.UTF-8",
	LC_NUMERIC = "bg_BG.UTF-8",
	LC_TELEPHONE = "bg_BG.UTF-8",
	LC_IDENTIFICATION = "bg_BG.UTF-8",
	LC_TIME = "bg_BG.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
(2/5) Updating udev hardware database...
(3/5) Updating system user accounts...
(4/5) Creating temporary files...
[journal-nocow.conf:26] Failed to resolve specifier: uninitialized /etc detected, skipping
All rules containing unresolvable specifiers will be skipped.
[systemd.conf:26] Failed to resolve specifier: uninitialized /etc detected, skipping
All rules containing unresolvable specifiers will be skipped.
chown() of /run/systemd/netif via /proc/self/fd/3 failed: No such file or directory
chown() of /run/systemd/netif/links via /proc/self/fd/3 failed: No such file or directory
chown() of /run/systemd/netif/leases via /proc/self/fd/3 failed: No such file or directory
ACL operation on "/var/log/journal" failed: No such file or directory
ACL operation on "/var/log/journal" failed: No such file or directory
[tmp.conf:15] Failed to replace specifiers: /tmp/systemd-private-%b-*
[tmp.conf:16] Failed to replace specifiers: /tmp/systemd-private-%b-*/tmp
[tmp.conf:17] Failed to replace specifiers: /var/tmp/systemd-private-%b-*
[tmp.conf:18] Failed to replace specifiers: /var/tmp/systemd-private-%b-*/tmp
chown() of /var/log/wtmp via /proc/self/fd/3 failed: No such file or directory
chown() of /var/log/btmp via /proc/self/fd/3 failed: No such file or directory
chown() of /var/log/lastlog via /proc/self/fd/3 failed: No such file or directory
(5/5) Arming ConditionNeedsUpdate...

Offline

#10 2018-02-14 19:46:41

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

warning: no /mnt/var/cache/pacman/pkg/ cache exists, creating...

The system does not appear to have a separate /var but the directory /var/cache/pacman/pkg/ was missing then from the second attempt it looks like /etc/group was missing or damaged.
Was the system shutdown uncleanly?  From outside the chroot post the output of

pacman --root=/mnt -Qkk
cat /mnt/var/log/pacman.log

Offline

#11 2018-02-14 19:51:01

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

I am not sure what that means

From outside the chroot 

Offline

#12 2018-02-14 19:53:51

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

[root@hp /]# su vb
21:51:33 / $ pacman --root=/mnt -Qkk
acl: 88 total files, 0 altered files
argon2: 15 total files, 0 altered files
attr: 66 total files, 0 altered files
bash: 235 total files, 0 altered files
bzip2: 26 total files, 0 altered files
coreutils: 429 total files, 0 altered files
cracklib: 129 total files, 0 altered files
cryptsetup: 78 total files, 0 altered files
db: 47 total files, 0 altered files
dbus: 96 total files, 0 altered files
device-mapper: 38 total files, 0 altered files
e2fsprogs: 179 total files, 0 altered files
expat: 24 total files, 0 altered files
backup file: filesystem: /mnt/etc/group (Modification time mismatch)
backup file: filesystem: /mnt/etc/group (Size mismatch)
backup file: filesystem: /mnt/etc/gshadow (Modification time mismatch)
backup file: filesystem: /mnt/etc/gshadow (Size mismatch)
backup file: filesystem: /mnt/etc/passwd (Modification time mismatch)
backup file: filesystem: /mnt/etc/passwd (Size mismatch)
backup file: filesystem: /mnt/etc/shadow (Modification time mismatch)
backup file: filesystem: /mnt/etc/shadow (Size mismatch)
filesystem: 111 total files, 0 altered files
gcc-libs: 64 total files, 0 altered files
gdbm: 64 total files, 0 altered files
glibc: 1596 total files, 0 altered files
gmp: 16 total files, 0 altered files
hwids: 5 total files, 0 altered files
iana-etc: 11 total files, 0 altered files
iptables: 205 total files, 0 altered files
json-c: 28 total files, 0 altered files
kbd: 746 total files, 0 altered files
keyutils: 60 total files, 0 altered files
kmod: 61 total files, 0 altered files
krb5: 202 total files, 0 altered files
lib32-attr: 5 total files, 0 altered files
lib32-gcc-libs: 47 total files, 0 altered files
lib32-glibc: 383 total files, 0 altered files
lib32-libcap: 7 total files, 0 altered files
lib32-libgcrypt: 5 total files, 0 altered files
lib32-libgpg-error: 5 total files, 0 altered files
lib32-systemd: 15 total files, 0 altered files
lib32-xz: 10 total files, 0 altered files
libcap: 55 total files, 0 altered files
libcap-ng: 43 total files, 0 altered files
libelf: 61 total files, 0 altered files
libgcrypt: 20 total files, 0 altered files
libgpg-error: 86 total files, 0 altered files
libidn: 163 total files, 0 altered files
libldap: 216 total files, 0 altered files
libmnl: 10 total files, 0 altered files
libnftnl: 21 total files, 0 altered files
libnl: 240 total files, 0 altered files
libpcap: 111 total files, 0 altered files
libsasl: 54 total files, 0 altered files
libseccomp: 40 total files, 0 altered files
libsystemd: 12 total files, 0 altered files
libtirpc: 90 total files, 0 altered files
libusb: 10 total files, 0 altered files
libutil-linux: 17 total files, 0 altered files
linux-api-headers: 884 total files, 0 altered files
lz4: 24 total files, 0 altered files
ncurses: 3749 total files, 0 altered files
openssl: 3354 total files, 0 altered files
pam: 637 total files, 0 altered files
pambase: 8 total files, 0 altered files
pcre2: 231 total files, 0 altered files
perl: 2734 total files, 0 altered files
popt: 114 total files, 0 altered files
readline: 50 total files, 0 altered files
shadow: 558 total files, 0 altered files
warning: systemd: /mnt/usr/share/polkit-1/rules.d/systemd-networkd.rules (Permission denied)
systemd: 1430 total files, 1 altered file
tzdata: 1848 total files, 0 altered files
util-linux: 489 total files, 0 altered files
xz: 119 total files, 0 altered files
zlib: 18 total files, 0 altered files
21:51:49 / $ cat /mnt/var/log/pacman.log
[2018-02-14 21:35] [ALPM] installed filesystem (2017.10-2)
[2018-02-14 21:35] [ALPM] installed glibc (2.26-11)
[2018-02-14 21:35] [ALPM] installed attr (2.4.47-3)
[2018-02-14 21:35] [ALPM] installed libcap (2.25-1)
[2018-02-14 21:35] [ALPM] installed gcc-libs (7.3.0-1)
[2018-02-14 21:35] [ALPM] installed ncurses (6.0+20170902-3)
[2018-02-14 21:35] [ALPM] installed readline (7.0.003-1)
[2018-02-14 21:35] [ALPM] installed bash (4.4.018-1)
[2018-02-14 21:35] [ALPM] installed libgpg-error (1.27-1)
[2018-02-14 21:35] [ALPM] installed libgcrypt (1.8.2-1)
[2018-02-14 21:35] [ALPM] installed lz4 (1:1.8.1.2-1)
[2018-02-14 21:35] [ALPM] installed xz (5.2.3-1)
[2018-02-14 21:35] [ALPM] installed libsystemd (237.31-1)
[2018-02-14 21:35] [ALPM] transaction completed
[2018-02-14 21:37] [PACMAN] Running 'pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S lib32-systemd'
[2018-02-14 21:37] [ALPM] transaction started
[2018-02-14 21:37] [ALPM] installed lib32-glibc (2.26-11)
[2018-02-14 21:37] [ALPM] installed lib32-gcc-libs (7.3.0-1)
[2018-02-14 21:37] [ALPM] installed lib32-attr (2.4.47-2)
[2018-02-14 21:37] [ALPM] installed lib32-libcap (2.25-1)
[2018-02-14 21:37] [ALPM] installed lib32-libgpg-error (1.27-1)
[2018-02-14 21:37] [ALPM] installed lib32-libgcrypt (1.8.1-1)
[2018-02-14 21:37] [ALPM] installed lib32-xz (5.2.3-1)
[2018-02-14 21:37] [ALPM] installed acl (2.2.52-4)
[2018-02-14 21:37] [ALPM] installed device-mapper (2.02.177-1)
[2018-02-14 21:37] [ALPM] installed popt (1.16-9)
[2018-02-14 21:37] [ALPM] installed libutil-linux (2.31.1-1)
[2018-02-14 21:37] [ALPM] installed json-c (0.13-1)
[2018-02-14 21:37] [ALPM] installed argon2 (20171227-3)
[2018-02-14 21:37] [ALPM] installed cryptsetup (2.0.1-1)
[2018-02-14 21:37] [ALPM] installed expat (2.2.5-1)
[2018-02-14 21:37] [ALPM] installed dbus (1.12.4-1)
[2018-02-14 21:37] [ALPM] installed libmnl (1.0.4-1)
[2018-02-14 21:37] [ALPM] installed libnftnl (1.0.9-1)
[2018-02-14 21:37] [ALPM] installed libnl (3.4.0-1)
[2018-02-14 21:37] [ALPM] installed libusb (1.0.21-2)
[2018-02-14 21:37] [ALPM] installed libpcap (1.8.1-2)
[2018-02-14 21:37] [ALPM] installed iptables (1.6.1-2)
[2018-02-14 21:37] [ALPM] installed zlib (1:1.2.11-2)
[2018-02-14 21:37] [ALPM] installed cracklib (2.9.6-1)
[2018-02-14 21:37] [ALPM] installed e2fsprogs (1.43.9-1)
[2018-02-14 21:37] [ALPM] installed gdbm (1.14.1-1)
[2018-02-14 21:37] [ALPM] installed db (5.3.28-3)
[2018-02-14 21:37] [ALPM] installed perl (5.26.1-2)
[2018-02-14 21:37] [ALPM] installed openssl (1.1.0.g-1)
[2018-02-14 21:37] [ALPM] installed libsasl (2.1.26-12)
[2018-02-14 21:37] [ALPM] installed libldap (2.4.45-4)
[2018-02-14 21:37] [ALPM] installed keyutils (1.5.10-1)
[2018-02-14 21:37] [ALPM] installed krb5 (1.16-1)
[2018-02-14 21:37] [ALPM] installed libtirpc (1.0.2-3)
[2018-02-14 21:37] [ALPM] installed pambase (20171006-1)
[2018-02-14 21:37] [ALPM] installed pam (1.3.0-1)
[2018-02-14 21:37] [ALPM] installed kbd (2.0.4-1)
[2018-02-14 21:37] [ALPM] installed kmod (24-1)
[2018-02-14 21:37] [ALPM] installed hwids (20171003-1)
[2018-02-14 21:37] [ALPM] installed libidn (1.33-2)
[2018-02-14 21:37] [ALPM] installed bzip2 (1.0.6-7)
[2018-02-14 21:37] [ALPM] installed libelf (0.170-1)
[2018-02-14 21:37] [ALPM] installed libseccomp (2.3.2-2)
[2018-02-14 21:37] [ALPM] installed shadow (4.5-4)
[2018-02-14 21:37] [ALPM] installed gmp (6.1.2-1)
[2018-02-14 21:37] [ALPM] installed coreutils (8.29-1)
[2018-02-14 21:37] [ALPM] installed libcap-ng (0.7.8-1)
[2018-02-14 21:37] [ALPM] installed util-linux (2.31.1-1)
[2018-02-14 21:37] [ALPM] installed pcre2 (10.30-1)
[2018-02-14 21:37] [ALPM] installed systemd (237.31-1)
[2018-02-14 21:37] [ALPM-SCRIPTLET] Failed to generate randomized : Function not implemented
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group sys with gid 3.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group mem with gid 8.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group ftp with gid 11.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group mail with gid 12.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group log with gid 19.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group smmsp with gid 25.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group proc with gid 26.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group games with gid 50.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group lock with gid 54.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group network with gid 90.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group floppy with gid 94.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group scanner with gid 96.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group power with gid 98.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group adm with gid 999.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group wheel with gid 998.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group kmem with gid 997.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group tty with gid 5.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group utmp with gid 996.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group audio with gid 995.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group optical with gid 994.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group uucp with gid 993.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group disk with gid 992.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group input with gid 991.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group kvm with gid 990.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group lp with gid 989.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group render with gid 988.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group storage with gid 987.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group video with gid 986.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group users with gid 985.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group systemd-journal with gid 984.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group rfkill with gid 983.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group daemon with gid 982.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group bin with gid 981.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group bin with gid 1.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user bin (n/a) with uid 1 and gid 1.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group daemon with gid 2.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user daemon (n/a) with uid 2 and gid 2.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group mail with gid 980.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user mail (n/a) with uid 980 and gid 980.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group ftp with gid 14.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user ftp (n/a) with uid 14 and gid 14.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group http with gid 33.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user http (n/a) with uid 33 and gid 33.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group nobody with gid 65534.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user nobody (Nobody) with uid 65534 and gid 65534.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group dbus with gid 81.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user dbus (System Message Bus) with uid 81 and gid 81.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group systemd-journal-remote with gid 979.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user systemd-journal-remote (systemd Journal Remote) with uid 979 and gid 979.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group systemd-network with gid 978.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user systemd-network (systemd Network Management) with uid 978 and gid 978.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group systemd-resolve with gid 977.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user systemd-resolve (systemd Resolver) with uid 977 and gid 977.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group systemd-coredump with gid 976.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user systemd-coredump (systemd Core Dumper) with uid 976 and gid 976.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating group uuidd with gid 68.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Creating user uuidd (n/a) with uid 68 and gid 68.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /usr/lib/systemd/system/getty@.service.
[2018-02-14 21:37] [ALPM-SCRIPTLET] Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target.
[2018-02-14 21:37] [ALPM-SCRIPTLET] :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
[2018-02-14 21:37] [ALPM-SCRIPTLET]    bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
[2018-02-14 21:37] [ALPM] installed lib32-systemd (237.31-1)
[2018-02-14 21:37] [ALPM] transaction completed
[2018-02-14 21:37] [ALPM] running 'detect-old-perl-modules.hook'...
[2018-02-14 21:37] [ALPM-SCRIPTLET] perl: warning: Setting locale failed.
[2018-02-14 21:37] [ALPM-SCRIPTLET] perl: warning: Please check that your locale settings:
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LANGUAGE = (unset),
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_ALL = (unset),
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_MEASUREMENT = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_PAPER = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_MONETARY = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_NAME = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_ADDRESS = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_NUMERIC = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_TELEPHONE = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_IDENTIFICATION = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LC_TIME = "bg_BG.UTF-8",
[2018-02-14 21:37] [ALPM-SCRIPTLET] 	LANG = "en_US.UTF-8"
[2018-02-14 21:37] [ALPM-SCRIPTLET]     are supported and installed on your system.
[2018-02-14 21:37] [ALPM-SCRIPTLET] perl: warning: Falling back to the standard locale ("C").
[2018-02-14 21:37] [ALPM] running 'systemd-hwdb.hook'...
[2018-02-14 21:37] [ALPM] running 'systemd-sysusers.hook'...
[2018-02-14 21:37] [ALPM] running 'systemd-tmpfiles.hook'...
[2018-02-14 21:37] [ALPM-SCRIPTLET] [journal-nocow.conf:26] Failed to resolve specifier: uninitialized /etc detected, skipping
[2018-02-14 21:37] [ALPM-SCRIPTLET] All rules containing unresolvable specifiers will be skipped.
[2018-02-14 21:37] [ALPM-SCRIPTLET] [systemd.conf:26] Failed to resolve specifier: uninitialized /etc detected, skipping
[2018-02-14 21:37] [ALPM-SCRIPTLET] All rules containing unresolvable specifiers will be skipped.
[2018-02-14 21:37] [ALPM-SCRIPTLET] chown() of /run/systemd/netif via /proc/self/fd/3 failed: No such file or directory
[2018-02-14 21:37] [ALPM-SCRIPTLET] chown() of /run/systemd/netif/links via /proc/self/fd/3 failed: No such file or directory
[2018-02-14 21:37] [ALPM-SCRIPTLET] chown() of /run/systemd/netif/leases via /proc/self/fd/3 failed: No such file or directory
[2018-02-14 21:37] [ALPM-SCRIPTLET] ACL operation on "/var/log/journal" failed: No such file or directory
[2018-02-14 21:37] [ALPM-SCRIPTLET] ACL operation on "/var/log/journal" failed: No such file or directory
[2018-02-14 21:37] [ALPM-SCRIPTLET] [tmp.conf:15] Failed to replace specifiers: /tmp/systemd-private-%b-*
[2018-02-14 21:37] [ALPM-SCRIPTLET] [tmp.conf:16] Failed to replace specifiers: /tmp/systemd-private-%b-*/tmp
[2018-02-14 21:37] [ALPM-SCRIPTLET] [tmp.conf:17] Failed to replace specifiers: /var/tmp/systemd-private-%b-*
[2018-02-14 21:37] [ALPM-SCRIPTLET] [tmp.conf:18] Failed to replace specifiers: /var/tmp/systemd-private-%b-*/tmp
[2018-02-14 21:37] [ALPM-SCRIPTLET] chown() of /var/log/wtmp via /proc/self/fd/3 failed: No such file or directory
[2018-02-14 21:37] [ALPM-SCRIPTLET] chown() of /var/log/btmp via /proc/self/fd/3 failed: No such file or directory
[2018-02-14 21:37] [ALPM-SCRIPTLET] chown() of /var/log/lastlog via /proc/self/fd/3 failed: No such file or directory
[2018-02-14 21:37] [ALPM] running 'systemd-update.hook'...

Offline

#13 2018-02-14 19:59:03

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

It is starting to make sense now from outside the chroot,  means exit the chroot if you are inside it or do not run the chroot command but setup the the mounts under /mnt ready to run arch-chroot
It looks like you ran `pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S libsystemd` inside the chroot.
If you did not exit the chroot and the output of `findmnt /mnt` is empty then you executed commands inside the chroot instead of outside.
Exit the chroot as you would end a terminal session check `findmnt /mnt` now shows the correct mount for /mnt then rerun `pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S libsystemd`
Edit:
Then everything that was installed into the the systems /mnt should be deleted after fixing the original issue.

Last edited by loqs (2018-02-14 20:00:55)

Offline

#14 2018-02-14 20:05:24

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

I am not sure I am doing it right but here is what I got

21:53:05 / $ findmnt /mnt
findmnt: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory
22:02:03 / $ pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S libsystemd
error: you cannot perform this operation unless you are root.
22:03:06 / $ sudo pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S libsystemd
[sudo] password for vb: 
warning: libsystemd-237.31-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libsystemd-237.31-1

Total Installed Size:  1.45 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                      [######################################] 100%
(1/1) checking package integrity                                    [######################################] 100%
(1/1) loading package files                                         [######################################] 100%
(1/1) checking for file conflicts                                   [######################################] 100%
:: Processing package changes...
(1/1) reinstalling libsystemd                                       [######################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Offline

#15 2018-02-14 20:09:14

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

No exit the chroot first type exit or key combination ctrl+D.
Edit:
If you get an error from findmnt you are still in the chroot.

Last edited by loqs (2018-02-14 20:10:21)

Offline

#16 2018-02-14 20:46:20

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

I tried two times. I get
'structure needs cleaning'

pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S libsystemd

warning: libsystemd-237.31-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libsystemd-237.31-1

Total Installed Size:  1.45 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                      [######################################] 100%
(1/1) checking package integrity                                    [######################################] 100%
(1/1) loading package files                                         [######################################] 100%
(1/1) checking for file conflicts                                   [######################################] 100%
:: Processing package changes...
(1/1) reinstalling libsystemd                                       [######################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

somewhere here comes the message about the 'libudev.so.1' and then it says
'structure needs cleaning'

Last edited by amaro (2018-02-14 20:52:46)

Offline

#17 2018-02-14 20:57:55

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

What exactly did you try it looks the last command was still run from within the chroot or is vb the user on the linux mint install?

amaro wrote:

somewhere here comes the message about the missing 'libudev.so.1' and
'structure needs cleaning'

Without knowing the context the messages appeared in it does not help explain if the issue is being repaired or not.

Offline

#18 2018-02-14 21:09:59

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

No, not repaired

Here is what I did - step by step
1 booted Arch cd
2 press Enter to load Arch cd
3 mounted sda4
4 mounted proc, sys, dev
5 run 'pacman --root=/mnt --cachedir ....' command
6 received the message ;structure needs cleaning'

Edit:
If I know how to save the output from those commands under Arch cd I will run them again and then will paste the output here. Is there such option?

Edit 2:
The Arch cd logs me as root. When I type 'exit' or 'ctl+D' I am still root. Just for the record.

Last edited by amaro (2018-02-14 21:22:46)

Offline

#19 2018-02-14 21:19:09

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

If you boot the system normally now is the error still present?
You can do `command &> logfile`

Offline

#20 2018-02-14 21:23:33

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

Yes, the error is still present.
How can I get this logfile to post it here once it is created?

Last edited by amaro (2018-02-14 21:24:43)

Offline

#21 2018-02-14 21:28:05

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

amaro wrote:

How can I get this logfile to post it here once it is created?

Use a pastebin client.

Offline

#22 2018-02-14 22:33:10

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

Here is the output of Arch cd

 fdisk -l
mount /dev/sda4 /mnt
mount -t proc proc /mnt/proc
mount --rbind /dev /mnt/dev
mount --rbind sys /mnt/sys
pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S libsystemd

warning: libsystemd-237.31-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
EXT4-fs error (device sda4) ext4_lookup:1580 inode #13371309 comm pacman deleted inode reference
warning couldn't get file information for /usr/lib/libudev.so.1
warning couldn't get file information for /usr/lib/libudev.so.1.6.9

Packages (1) systemd-237.31-1

Total Installed Size:  1.52 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
:: Processing package changes...
EXT4-fs error (device sda4) ext4_lookup:1580 inode #13371309 comm pacman deleted inode reference
(1/1) reinstalling lib32-systemd                   [######################] 100%
EXT4-fs error (device sda4) ext4_lookup:1580 inode #13371309 comm ldconfig deleted inode reference
ldconfig cannot lstat /usr/lib/libudev.so.1.6.9: Structure needs cleaning

And here is the output when trying to boot the system

systemd-tempfiles error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory
usr/lib/systemd/systemd-udev: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory
udevadm: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory
error device /dev/sda4 not found. Skipping fsck.
mount: /new_root: no filesystem type specified
You are now into an emergency shell.
sh: can't access tty; job control turned off
[rootfs #]

And here the keyboard is not functioning. I have to switch the laptop using the power button.

Edit:
I typed all this by hand so it is for 'libsystemd' only. I saw I typed "lib32" which is wrong.

Last edited by amaro (2018-02-14 22:46:19)

Offline

#23 2018-02-14 22:46:15

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

I would suggest you backup any valuable data from the device sda before doing anything else.
Then run fsck on sda4 answer no to every prompt to errors just post the output also the output of `smartctl -a /dev/sda` and if the device a not using NVME run a Run_a_test.

Offline

#24 2018-02-14 22:51:07

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 364

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

Can I do this from Linux Mint. I am logged now here?

Offline

#25 2018-02-14 22:56:39

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: systemd-tmpfiles: error while loading shared libraries: libudev.so.1

If linux mint has someway to backup files if there is anything you want to backup and it provides fsck and smartctl I do not see why not.
Just make sure the device identifier you are using is correct /dev/sda could have changed to something else.

Offline

Board footer

Powered by FluxBB