Is install-dev-tools broken in 24.10.2?

just tried to install dev tools but received this error

  • FORCE_ARG=
  • [[ ‘’ == --\f\o\r\c\e ]]
  • [[ ! -S /var/run/middleware/middlewared.sock ]]
  • PACKAGES=(make open-iscsi python3-cryptography python3-pip python3-pyfakefs python3-pyotp python3-pytest python3-pytest-asyncio python3-pytest-dependency python3-pytest-rerunfailures python3-pytest-timeout snmp sshpass zstd)
  • PIP_PACKAGES=()
  • ‘[’ -f /usr/local/libexec/disable-rootfs-protection ‘]’
  • /usr/local/libexec/disable-rootfs-protection
    Flagging root dataset as developer mode
    Setting readonly=off on dataset boot-pool/ROOT/24.10.1/opt
    Setting readonly=off on dataset boot-pool/ROOT/24.10.1/usr
    cannot mount ‘boot-pool/ROOT/24.10.1/usr’: Read-only file system
    property may be set but unable to remount filesystem
    /usr/bin/apt: setting 0o755 on file.
    Traceback (most recent call last):
    File “/usr/local/libexec/disable-rootfs-protection”, line 117, in
    chmod_files()
    File “/usr/local/libexec/disable-rootfs-protection”, line 53, in chmod_files
    os.chmod(entry.path, new_mode)
    OSError: [Errno 30] Read-only file system: ‘/usr/bin/apt’
2 Likes

I got the same issue after upgrade

Any body has resovled this?

1 Like

I suggest you report this using the bug report button directly from inside TrueNAS.

OK, I’ve open a ticket, hope it will be fixed soon.
https://ixsystems.atlassian.net/browse/NAS-133291

1 Like

The ticket have been closed, with follow commands, the issue can be solved:

$sudo systemd-sysext unmerge
$sudo install-dev-tools
$sudo systemd-sysext merge

That looks like at least two commands.
Should they be used like so:
sudo systemd-sysext unmerge install-dev-tools
sudo systemd-sysext merge

Or another way?

sudo systemd-sysext unmerge
install-dev-tools
sudo systemd-sysext merge

:slight_smile:

1 Like

it seems like you’ll need to leave it unmerged when installing anything with apt-get though

1 Like

Yes,and I always get this warning after apt-get install,but seems don’t matter:

Preparing to unpack .../screen_4.9.0-4_amd64.deb ...
Unpacking screen (4.9.0-4) ...
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up screen (4.9.0-4) ...
Processing triggers for debianutils (5.7-0.5~deb12u1) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for initramfs-tools (0.142) ...
ln: failed to create hard link '/boot/initrd.img-6.6.44-production+truenas.dpkg-bak': Read-only file system
cp: cannot create regular file '/boot/initrd.img-6.6.44-production+truenas.dpkg-bak': Read-only file system
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)