#1030478 cannot uninstall open-iscsi package

Package:
open-iscsi
Source:
open-iscsi
Description:
iSCSI initiator tools
Submitter:
Harald Dunkel
Date:
2023-02-14 11:54:02 UTC
Severity:
normal
#1030478#5
Date:
2023-02-04 07:48:21 UTC
From:
To:
Trying to uninstall open-iscsi I got

Removing open-iscsi (2.1.3-5) ...
rm: cannot remove '/usr/sbin/]': No such file or directory
dpkg: error processing package open-iscsi (--remove):
  installed open-iscsi package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
  open-iscsi
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)


Regards

Harri

#1030478#10
Date:
2023-02-04 07:54:54 UTC
From:
To:

#1030478#15
Date:
2023-02-14 11:52:04 UTC
From:
To:
Hello Harald,

I did a quick test with the version in Bookworm and cannot reproduce
the issue. I will try later with the version in Bullseye, if time
permits.
[sudo] password for rrs:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libisns0 libopeniscsiusr
Recommended packages:
  finalrd
The following NEW packages will be installed:
  libisns0 libopeniscsiusr open-iscsi
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 464 kB of archives.
After this operation, 2,152 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian testing/main amd64 libisns0 amd64 0.101-0.2+b1 [92.0 kB]
Get:2 http://deb.debian.org/debian testing/main amd64 libopeniscsiusr amd64 2.1.8-1 [59.7 kB]
Get:3 http://deb.debian.org/debian testing/main amd64 open-iscsi amd64 2.1.8-1 [312 kB]
Fetched 464 kB in 3s (156 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libisns0:amd64.
(Reading database ... 469438 files and directories currently installed.)
Preparing to unpack .../libisns0_0.101-0.2+b1_amd64.deb ...
Unpacking libisns0:amd64 (0.101-0.2+b1) ...
Selecting previously unselected package libopeniscsiusr.
Preparing to unpack .../libopeniscsiusr_2.1.8-1_amd64.deb ...
Unpacking libopeniscsiusr (2.1.8-1) ...
Selecting previously unselected package open-iscsi.
Preparing to unpack .../open-iscsi_2.1.8-1_amd64.deb ...
Unpacking open-iscsi (2.1.8-1) ...
Setting up libopeniscsiusr (2.1.8-1) ...
Setting up libisns0:amd64 (0.101-0.2+b1) ...
Setting up open-iscsi (2.1.8-1) ...

Created symlink /etc/systemd/system/sockets.target.wants/iscsid.socket → /lib/systemd/system/iscsid.socket.
Created symlink /etc/systemd/system/iscsi.service → /lib/systemd/system/open-iscsi.service.
Created symlink /etc/systemd/system/sysinit.target.wants/open-iscsi.service → /lib/systemd/system/open-iscsi.service.
Processing triggers for libc-bin (2.36-8) ...
Processing triggers for man-db (2.11.2-1) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-4-amd64

Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

The processor microcode seems to be up-to-date.

Restarting services...
Service restarts being deferred:
 systemctl restart NetworkManager.service
 systemctl restart bluetooth.service
 /etc/needrestart/restart.d/dbus.service
 systemctl restart docker.service
 systemctl restart sddm.service
 systemctl restart systemd-logind.service

No containers need to be restarted.

User sessions running outdated binaries:
 rrs @ session #3: sddm-helper[13130]
 rrs @ user manager service: at-spi-bus-laun[14600], bash[14025,15366], firefox[168306], jellyfinmediapl[168054], konsole[14012], kwin_wayland[13209], kwin_wayland_wr[13203], QtWebEngineProc[168095,168097], systemd[13132],
  xdg-document-po[14582]

No VM guests are running outdated hypervisor (qemu) binaries on this host.





rrs@xps:~$ sudo apt purge open-iscsi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libisns0 libopeniscsiusr
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  open-iscsi*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 1,457 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 469492 files and directories currently installed.)
Removing open-iscsi (2.1.8-1) ...
Warning: Stopping iscsid.service, but it can still be activated by:
  iscsid.socket
Processing triggers for man-db (2.11.2-1) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-4-amd64
(Reading database ... 469455 files and directories currently installed.)
Purging configuration files for open-iscsi (2.1.8-1) ...