You are not logged in.
Hi, on my archlinux fully update pc when i run pacman -Syu i get a lot of
Failed to check for chroot() environment: Permission deniedThis happen after a resize/moving hard disk partition through gparted.
I also tried to search the web but without results.
Can somebody give me a start point for further investigation?
Thanks
Davide
Offline
It could be incorrect or overly restrictive mount options on your root. Try "mount | grep -E ' / | /boot | /home'" to check current mount options, or "cat /etc/fstab" to check what fstab says. Also "ls -ld / /boot /var/cache/pacman/pkg", have a look at permissions. Look for noexec, nosuid, or nodev on the root (/) filesystem?
Remount root with proper options temporarily:
sudo mount -o remount,exec,suid,dev /
Edit fstab:
sudo nano /etc/fstab
Make sure the root line looks like this (adjust UUID or PARTUUID):
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext4 defaults 0 1
Remove any noexec, nosuid, nodev from the root / line, but for /boot or EFI partition, defaults or noatime is usually fine. I use noatime myself. Less "junk" imho. Example for root: defaults,noatime (no noexec etc.).
I use BTRFS though, so mine looks like:
<idiiii> / btrfs defaults,rw,noatime,compress=zstd:3,ssd,space_cache=v2 0 0
Test fstab and see: "sudo mount -a"
Offline
Thanks
mount | grep -E ' / | /boot | /home'
/dev/sda1 on / type ext4 (rw,relatime)ls -ld / /boot /var/cache/pacman/pkg
drwxr-xr-x 18 root root 4096 21 apr 11.12 /
drwxr-xr-x 3 root root 4096 21 apr 09.20 /boot
drwxr-xr-x 2 root root 2949120 21 apr 09.12 /var/cache/pacman/pkgcat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda1
UUID=2984ab62-e531-426e-bc0f-98ee18ea2c57 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda5
UUID=39e6a40e-dd1f-49ff-b790-189ea4fff4dd swap swap defaults 0 0
/dev/sda6 /media/Dati ntfs-3g silent,umask=0,locale=it_IT.utf8 0 0What i have to remove from /etc/fstab?
blkid
/dev/sda1: UUID="2984ab62-e531-426e-bc0f-98ee18ea2c57" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="56d66567-01"
/dev/sda5: UUID="39e6a40e-dd1f-49ff-b790-189ea4fff4dd" TYPE="swap" PARTUUID="56d66567-05"
/dev/sda6: LABEL="Dati" BLOCK_SIZE="512" UUID="2EFDD8F202E377AA" TYPE="ntfs" PARTUUID="56d66567-06"Offline
This happen after a resize/moving hard disk partition through gparted.
What partitions exactly?
I assume there's also a parallel windows installation?
lsblk -f
sudo fdisk -l /dev/sda
df -h
sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' | grep -v backupOnline
What partitions exactly?
Honestly i don' t remember, six months ago...
I assume there's also a parallel windows installation?
Nope
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 ext4 1.0 2984ab62-e531-426e-bc0f-98ee18ea2c57 148,5G 35% /
├─sda2
├─sda5 swap 1 39e6a40e-dd1f-49ff-b790-189ea4fff4dd [SWAP]
└─sda6 ntfs Dati 2EFDD8F202E377AA 212,7G 52% /media/Dati
sr0sudo fdisk -l /dev/sda
fdisk -l /dev/sda
Disk /dev/sda: 931,51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST31000524AS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x56d66567
Dispositivo Avvio Start Fine Settori Size Id Tipo
/dev/sda1 2048 531361791 531359744 253,4G 83 Linux
/dev/sda2 531361792 1457274879 925913088 441,5G 5 Esteso
/dev/sda5 531363840 535664639 4300800 2,1G 82 Linux swap / Solaris
/dev/sda6 535666688 1457274879 921608192 439,5G 7 HPFS/NTFS/exFATdf -h
File system Dim. Usati Dispon. Uso% Montato su
/dev/sda1 250G 89G 149G 38% /
devtmpfs 1,9G 0 1,9G 0% /dev
tmpfs 1,9G 0 1,9G 0% /dev/shm
tmpfs 776M 1,2M 775M 1% /run
none 1,0M 0 1,0M 0% /run/credentials/systemd-journald.service
tmpfs 1,9G 4,0K 1,9G 1% /tmp
/dev/sda6 440G 227G 213G 52% /media/Dati
none 1,0M 0 1,0M 0% /run/credentials/getty@tty1.service
tmpfs 388M 108K 388M 1% /run/user/1000LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' | grep -v backup
LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' | grep -v backup
warning: accountsservice: /var/lib/AccountsService (Permissions mismatch)
warning: cups: /etc/cups/classes.conf (Permissions mismatch)
warning: cups: /etc/cups/printers.conf (Permissions mismatch)
warning: cups: /etc/cups/subscriptions.conf (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/lang (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/plugins (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/plugins/audio (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/plugins/bearer (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/plugins/imageformats (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/plugins/platforms (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/plugins/printsupport (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/resources (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/resources/flightsim (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/resources/flightsim/aircraft (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/resources/flightsim/controller (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/resources/flightsim/hud (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/resources/flightsim/keyboard (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/resources/flightsim/planet (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/resources/gdal (Permissions mismatch)
warning: google-earth-pro: /opt/google/earth/pro/shaders (Permissions mismatch)
warning: hplip-plugin: /var/lib/hp (GID mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Modification time mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Modification time mismatch)
warning: libutempter: /usr/lib/utempter/utempter (GID mismatch)
warning: libutempter: /usr/lib/utempter/utempter (Permissions mismatch)
warning: libvlc: /usr/lib/vlc/plugins/plugins.dat (Modification time mismatch)
warning: libvlc: /usr/lib/vlc/plugins/plugins.dat (Size mismatch)
warning: libvlc: /usr/lib/vlc/plugins/plugins.dat (SHA256 checksum mismatch)
warning: nginx-mainline: /var/lib/nginx/proxy (UID mismatch)
accountsservice: 298 total files, 1 altered file
cups: 947 total files, 3 altered files
google-earth-pro: 417 total files, 16 altered files
hplip-plugin: 50 total files, 1 altered file
java-runtime-common: 21 total files, 2 altered files
libutempter: 20 total files, 1 altered file
libvlc: 120 total files, 1 altered file
nginx-mainline: 47 total files, 1 altered file
warning: samba: /var/lib/samba/private (Permissions mismatch)
warning: shadow: /usr/bin/groupmems (GID mismatch)
warning: shadow: /usr/bin/groupmems (Permissions mismatch)
warning: systemd: /var/log/journal (GID mismatch)
samba: 1196 total files, 1 altered file
shadow: 576 total files, 1 altered file
systemd: 1826 total files, 1 altered fileThanks
Offline
Doesn't look horribly broken ![]()
So let's see what this
Hi, on my archlinux fully update pc when i run pacman -Syu i get a lot of
actually is resp. where it's coming from.
sudo pacman -Syu --debug | tee /tmp/pacman.out
cat /tmp/pacman.out | curl -s -H "Accept: application/json, */*" --upload-file - 'https://paste.c-net.org/'Online
Thanks seth
Paste.c Link
Offline
Seems this is coming from the systemd hooks, does
sudo systemctl daemon-reloadcause this?
stat: cannot statx '/proc/1/root': Permesso negatohttps://bbs.archlinux.org/viewtopic.php … 1#p1981431 ?
What is the context here?
Online