Public bug reported:

Running 'stat' from coreutils-from-uutils in a chroot fails:

$ lsb_release -d
Description:    Ubuntu 25.10
$ stat /
stat: cannot read table of mounted file systems: No such file or directory

Works fine on Plucky with 'stat' from legacy coreutils:

# lsb_release -d
Description:    Ubuntu 25.04
root@gollum:~# stat /
  File: /
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 259,7   Inode: 8785791     Links: 17
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-12-03 13:42:45.865310118 +0000
Modify: 2025-12-03 13:40:15.200144863 +0000
Change: 2025-12-03 13:40:15.200144863 +0000
 Birth: 2025-12-03 13:34:36.168250691 +0000


To reproduce:

$ sudo debootrap questing questing
$ sudo chroot questing stat /
stat: cannot read table of mounted file systems: No such file or directory


One of the side-effects of this is that grub-pc installation in a chroot fails:

# apt install grub-pc
Installing:                     
  grub-pc

Installing dependencies:
  grub-gfxpayload-lists

Summary:
  Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0
  Download size: 0 B / 127 kB
  Space needed: 534 kB / 519 GB available

Continue? [Y/n] 
Preconfiguring packages ...
Error: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such 
device)
Selecting previously unselected package grub-pc.
(Reading database ... 14914 files and directories currently installed.)
Preparing to unpack .../grub-pc_2.14~git20250718.0e36779-1ubuntu4_amd64.deb ...
Unpacking grub-pc (2.14~git20250718.0e36779-1ubuntu4) ...
Selecting previously unselected package grub-gfxpayload-lists.
Preparing to unpack .../grub-gfxpayload-lists_0.7build2_amd64.deb ...
Unpacking grub-gfxpayload-lists (0.7build2) ...
Setting up grub-pc (2.14~git20250718.0e36779-1ubuntu4) ...
Creating config file /etc/default/grub with new version
stat: cannot read table of mounted file systems: No such file or directory
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error 
exit status 1
dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
 grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
  Package grub-pc is not configured yet.

dpkg: error processing package grub-gfxpayload-lists (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 grub-pc
 grub-gfxpayload-lists
Error: Sub-process /usr/bin/dpkg returned an error code (1)

** Affects: coreutils-from (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2133797

Title:
  stat fails in a chroot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils-from/+bug/2133797/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to