You are not logged in.
Why i cannot properly remove speech-dispatcher on Devuan?
Removing speech-dispatcher (0.10.2-2+deb11u1) ...
opendir /proc: Permission denied
userdel: /etc/subuid.2456: Permission denied
userdel: cannot lock /etc/subuid; try again later.
/usr/sbin/deluser: `/usr/sbin/userdel speech-dispatcher' returned error code 16. Exiting.
dpkg: error processing package speech-dispatcher (--remove):
installed speech-dispatcher package post-removal script subprocess returned err
or exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
speech-dispatcher
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Offline
Try
rm /etc/subuid.2456
apt purge speech-dispatcher
If that doesn't work post the full error message and the output of
stat /proc /etc
Last edited by Head_on_a_Stick (2022-09-07 07:57:34)
Brianna Ghey — Rest In Power
Offline
Doesn't work. subuid number change every time when i`m try remove this package. /etc not have any directories /subuid at all.
xxxxx@devuan:~$ sudo apt purge speech-dispatcher
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
espeak-ng-data libespeak-ng1 libspeechd2 speech-dispatcher-audio-plugins
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
speech-dispatcher
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 18.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 118075 files and directories currently installed.)
Removing speech-dispatcher (0.10.2-2+deb11u1) ...
opendir /proc: Permission denied
userdel: /etc/subuid.2445: Permission denied
userdel: cannot lock /etc/subuid; try again later.
/usr/sbin/deluser: `/usr/sbin/userdel speech-dispatcher' returned error code 16.
Exiting.
dpkg: error processing package speech-dispatcher (--remove):
installed speech-dispatcher package post-removal script subprocess returned err
or exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
speech-dispatcher
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
xxxxx@devuan:~$ stat /proc /etc
File: /proc
Size: 0 Blocks: 0 IO Block: 1024 directory
Device: 15h/21d Inode: 1 Links: 216
Access: (0555/dr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-09-07 12:13:46.620000002 +0300
Modify: 2022-09-07 12:13:46.620000002 +0300
Change: 2022-09-07 12:13:46.620000002 +0300
Birth: -
File: /etc
Size: 12288 Blocks: 24 IO Block: 4096 directory
Device: 802h/2050d Inode: 389378 Links: 124
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-09-06 02:18:45.395999689 +0300
Modify: 2022-09-07 12:15:49.743995811 +0300
Change: 2022-09-07 12:15:49.743995811 +0300
Birth: 2022-09-06 02:18:45.395999689 +0300
Last edited by DandyKenguru (2022-09-07 09:34:18)
Offline
How about
findmnt
Brianna Ghey — Rest In Power
Offline
I found solution.
sudo sed -i '/speech-dispatcher/d' /etc/passwd
After this cmd I can remove this package.
PS: Thank You for help.
Offline
I think there might be an underlying problem not addressed by that workaround. Can we see the findmnt output? It will show if everything's mounted correctly.
Brianna Ghey — Rest In Power
Offline
I think it something to do with how devuan live iso create user(s) in system. Because i cannot use "userdel" command (always something lock without possibility unlock it or delete *.lock) and /etc/subuid have "devuan" string and not my username. Maybe I`m wrong.
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sda2 ext4 rw,noatime
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security securityfs securit rw,relatime
│ ├─/sys/fs/pstore pstore pstore rw,relatime
│ ├─/sys/fs/cgroup cgroup2 cgroup2 rw,nosuid,nodev,noexec,relatime,nsde
│ ├─/sys/firmware/efi/efivars
│ │ efivarfs efivarf rw,nosuid,nodev,noexec,relatime
│ └─/sys/kernel/debug none debugfs rw,relatime
│ └─/sys/kernel/debug/tracing
│ tracefs tracefs rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
├─/dev udev devtmpf rw,nosuid,relatime,size=4024320k,nr_
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode
│ └─/dev/shm tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size
├─/run tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size
│ ├─/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size
│ └─/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=809280
├─/home /dev/sda4 ext4 rw,noatime
└─/boot/efi /dev/sda1 vfat rw,relatime,fmask=0077,dmask=0077,co
Offline
Everything looks normal to me. Not sure what's going on there.
Brianna Ghey — Rest In Power
Offline
Damn. I found out what created all this mess. Just one word. "APPARMOR". First time I`m see apparmor vs apt conflict.
sudo aa-disable /etc/apparmor.d/usr.sbin.userdel ; sudo apt purge -y speech-dispatcher ; sudo aa-enforce /etc/apparmor.d/usr.sbin.userdel ; sudo apt -y autoremove
Last edited by DandyKenguru (2022-09-07 19:26:56)
Offline