I have problems with some packages (7 of them to be specific), and I can't solve this situation.
What's the problem?
Packages not fully installed and impossible to remove (at least for me).
What's my OS and what I do with it at now?
My OS is Ubuntu server 16.04. I Just have install it.
I also installed asterisk, openvpn, openSSH and shorewall among others.
Some information about the problem
Everytime I install or remove package, it's show me an error message of not fully installed packages that I can solve in anyway.
When I execute, as a root user, the command "dpkg --remove openvpn", the result is that:
root@ubuntu-server:~# dpkg --remove openvpn (Reading database ... 64768 files and directories currently installed.) Removing openvpn (2.3.10-1ubuntu2) ... warnings.pm did not return a true value at /usr/bin/deb-systemd-helper line 84. BEGIN failed--compilation aborted at /usr/bin/deb-systemd-helper line 84. dpkg: error processing package openvpn (--remove): subprocess installed post-removal script returned error exit status 5 Processing triggers for libc-bin (2.23-0ubuntu3) ... Processing triggers for man-db (2.7.5-1) ... Errors were encountered while processing: openvpn
And the same is for the packages:
I also look into the file /usr/bin/deb-systemd-helper and founded out the line mentioned like the error line: use warnings;
What I already try to solve this?
- Comment lines in .posrm and .prerm files of some packages.
- Diffetent ways to uninstall those packages (dpkg, apt-get and apt remove, apt purge, etc.).
- reboot system after apt-get update and apt-get upgrade