Unable to uninstall

Hi,

I gave a try to Jitsi on a Ubuntu 18.4 server and now want to unistall, but I can’t clean my system, still have some unwanted things.

As read here, I tried a

sudo apt-get remove --purge jitsi-meet jitsi-meet-prosody jitsi-meet-web-config jitsi-meet-web jicofo jitsi-videobridge

and get this :

sudo apt-get remove --purge jitsi-meet jitsi-meet-prosody jitsi-meet-web-config jitsi-meet-web jicofo jitsi-videobridge
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ‘jitsi-meet-web’ is not installed, so not removed
The following packages will be REMOVED:
jicofo* jitsi-meet* jitsi-meet-prosody* jitsi-meet-web-config jitsi-videobridge*
0 upgraded, 0 newly installed, 5 to remove and 32 not upgraded.
1 not fully installed or removed.
After this operation, 54.3 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 73138 files and directories currently installed.)
Removing jitsi-meet-web-config (1.0.3729-1) …
Job for apache2.service failed because the control process exited with error code.
See “systemctl status apache2.service” and “journalctl -xe” for details.
invoke-rc.d: initscript apache2, action “reload” failed.
dpkg: error processing package jitsi-meet-web-config (–remove):
installed jitsi-meet-web-config package post-removal script subprocess returned error exit status 1
dpkg: warning: ignoring request to remove jicofo, only the config
files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove jitsi-meet, only the config
files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove jitsi-meet-prosody, only the config
files of which are on the system; use --purge to remove them too
dpkg: warning: ignoring request to remove jitsi-videobridge, only the config
files of which are on the system; use --purge to remove them too
Errors were encountered while processing:
jitsi-meet-web-config
W: Can not find PkgVer for ‘jicofo’
W: Can not find PkgVer for ‘jitsi-meet’
W: Can not find PkgVer for ‘jitsi-meet-prosody’
W: Can not find PkgVer for ‘jitsi-videobridge’
E: Sub-process /usr/bin/dpkg returned an error code (1)

Help would be very appreciated !

Diego

What happens if you run just:

sudo apt-get remove --purge jitsi-meet

That :

sudo apt-get remove --purge jitsi-meet
[sudo] password for narsil:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
jitsi-meet* jitsi-meet-web-config
0 upgraded, 0 newly installed, 2 to remove and 32 not upgraded.
1 not fully installed or removed.
After this operation, 54.3 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 73138 files and directories currently installed.)
Removing jitsi-meet-web-config (1.0.3729-1) …
Job for apache2.service failed because the control process exited with error code.
See “systemctl status apache2.service” and “journalctl -xe” for details.
invoke-rc.d: initscript apache2, action “reload” failed.
dpkg: error processing package jitsi-meet-web-config (–remove):
installed jitsi-meet-web-config package post-removal script subprocess returned error exit status 1
dpkg: warning: ignoring request to remove jitsi-meet, only the config
files of which are on the system; use --purge to remove them too
Errors were encountered while processing:
jitsi-meet-web-config
W: Can not find PkgVer for ‘jitsi-meet’
E: Sub-process /usr/bin/dpkg returned an error code (1)

What is this saying?

systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) (Result: exit-code) since Thu 2020-03-19 17:19:52 CET; 2 weeks 4 days ago
Process: 18844 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE)
Main PID: 8587 (apache2)
Tasks: 11 (limit: 4676)
CGroup: /system.slice/apache2.service
├─ 5034 /usr/sbin/apache2 -k start
├─ 5035 /usr/sbin/apache2 -k start
├─ 8587 /usr/sbin/apache2 -k start
├─18521 /usr/sbin/apache2 -k start
├─18522 /usr/sbin/apache2 -k start
├─18526 /usr/sbin/apache2 -k start
├─18529 /usr/sbin/apache2 -k start
├─18533 /usr/sbin/apache2 -k start
├─30599 /usr/sbin/apache2 -k start
├─30600 /usr/sbin/apache2 -k start
└─30601 /usr/sbin/apache2 -k start

Apr 06 19:47:48 cerise apachectl[17886]: The Apache error log may have more information.
Apr 06 19:47:48 cerise systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 06 19:47:48 cerise systemd[1]: Reload failed for The Apache HTTP Server.
Apr 06 20:34:49 cerise systemd[1]: Reloading The Apache HTTP Server.
Apr 06 20:34:49 cerise apachectl[18844]: AH00526: Syntax error on line 17 of /etc/apache2/sites-enabled/h2g2.ch.conf:
Apr 06 20:34:49 cerise apachectl[18844]: SSLCertificateFile: file ‘/etc/letsencrypt/live/fullchain.pem’ does not exist
Apr 06 20:34:49 cerise apachectl[18844]: Action ‘graceful’ failed.
Apr 06 20:34:49 cerise apachectl[18844]: The Apache error log may have more information.
Apr 06 20:34:49 cerise systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 06 20:34:49 cerise systemd[1]: Reload failed for The Apache HTTP Server.

And

journalctl -xe
Apr 06 21:22:02 cerise sshd[19918]: Failed password for root from 49.88.112.75 port 19041 ssh2
Apr 06 21:22:03 cerise sshd[19922]: Invalid user temp1 from 139.99.105.138 port 44702
Apr 06 21:22:03 cerise sshd[19922]: pam_unix(sshd:auth): check pass; user unknown
Apr 06 21:22:03 cerise sshd[19922]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
Apr 06 21:22:03 cerise sshd[19920]: Failed password for invalid user research from 41.111.135.199 port 48370 ssh2
Apr 06 21:22:04 cerise sshd[19924]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
Apr 06 21:22:04 cerise sshd[19920]: Received disconnect from 41.111.135.199 port 48370:11: Bye Bye [preauth]
Apr 06 21:22:04 cerise sshd[19920]: Disconnected from invalid user research 41.111.135.199 port 48370 [preauth]
Apr 06 21:22:05 cerise sshd[19918]: Failed password for root from 49.88.112.75 port 19041 ssh2
Apr 06 21:22:05 cerise sshd[19924]: Failed password for root from 222.186.175.154 port 35942 ssh2
Apr 06 21:22:06 cerise sshd[19918]: Received disconnect from 49.88.112.75 port 19041:11: [preauth]
Apr 06 21:22:06 cerise sshd[19918]: Disconnected from authenticating user root 49.88.112.75 port 19041 [preauth]
Apr 06 21:22:06 cerise sshd[19918]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=49.
Apr 06 21:22:06 cerise sshd[19922]: Failed password for invalid user temp1 from 139.99.105.138 port 44702 ssh2
Apr 06 21:22:06 cerise sshd[19922]: Received disconnect from 139.99.105.138 port 44702:11: Bye Bye [preauth]
Apr 06 21:22:06 cerise sshd[19922]: Disconnected from invalid user temp1 139.99.105.138 port 44702 [preauth]
Apr 06 21:22:09 cerise sshd[19924]: Failed password for root from 222.186.175.154 port 35942 ssh2
Apr 06 21:22:12 cerise sshd[19924]: Failed password for root from 222.186.175.154 port 35942 ssh2
Apr 06 21:22:12 cerise sshd[19928]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
Apr 06 21:22:15 cerise sshd[19928]: Failed password for root from 222.186.15.62 port 49536 ssh2
Apr 06 21:22:16 cerise sshd[19924]: Failed password for root from 222.186.175.154 port 35942 ssh2
Apr 06 21:22:18 cerise sshd[19928]: Failed password for root from 222.186.15.62 port 49536 ssh2
Apr 06 21:22:19 cerise sshd[19924]: Failed password for root from 222.186.175.154 port 35942 ssh2
Apr 06 21:22:19 cerise sshd[19924]: error: maximum authentication attempts exceeded for root from 222.186.175.154 port
Apr 06 21:22:19 cerise sshd[19924]: Disconnecting authenticating user root 222.186.175.154 port 35942: Too many authen
Apr 06 21:22:19 cerise sshd[19924]: PAM 4 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=222
Apr 06 21:22:19 cerise sshd[19924]: PAM service(sshd) ignoring max retries; 5 > 3
Apr 06 21:22:19 cerise sshd[19930]: Invalid user image from 58.56.200.58 port 2443
Apr 06 21:22:19 cerise sshd[19930]: pam_unix(sshd:auth): check pass; user unknown
Apr 06 21:22:19 cerise sshd[19930]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
Apr 06 21:22:20 cerise sshd[19928]: Failed password for root from 222.186.15.62 port 49536 ssh2
Apr 06 21:22:20 cerise sshd[19928]: Received disconnect from 222.186.15.62 port 49536:11: [preauth]
Apr 06 21:22:20 cerise sshd[19928]: Disconnected from authenticating user root 222.186.15.62 port 49536 [preauth]
Apr 06 21:22:20 cerise sshd[19928]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=222
Apr 06 21:22:22 cerise sshd[19930]: Failed password for invalid user image from 58.56.200.58 port 2443 ssh2
Apr 06 21:22:22 cerise sshd[19930]: Received disconnect from 58.56.200.58 port 2443:11: Bye Bye [preauth]
Apr 06 21:22:22 cerise sshd[19930]: Disconnected from invalid user image 58.56.200.58 port 2443 [preauth]
Apr 06 21:22:22 cerise sshd[19932]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=

Found some strange things in /etc/apache2/sites-enabled/h2g2.ch.conf :

<VirtualHost *:80>
ServerName h2g2.ch
Redirect permanent / https://h2g2.ch/
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

<VirtualHost *:443>

ServerName h2g2.ch

SSLProtocol TLSv1 TLSv1.1 TLSv1.2
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/letsencrypt/live/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/fullchain.pem
SSLCipherSuite “EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA256:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EDH+aRSA+AESGCM:EDH+aRSA+SHA256:EDH+aRSA:EECDH:!aNULL:!eNULL:!MEDIUM:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!SEED”
SSLHonorCipherOrder on
Header set Strict-Transport-Security “max-age=31536000”

DocumentRoot “/usr/share/jitsi-meet”
<Directory “/usr/share/jitsi-meet”>
Options Indexes MultiViews Includes FollowSymLinks
AddOutputFilter Includes html
AllowOverride All
Order allow,deny
Allow from all

ErrorDocument 404 /static/404.html

Alias “/config.js” “/etc/jitsi/meet/h2g2.ch-config.js”
<Location /config.js>
Require all granted

Alias “/external_api.js” “/usr/share/jitsi-meet/libs/external_api.min.js”
<Location /external_api.js>
Require all granted

ProxyPreserveHost on
ProxyPass /http-bind http://localhost:5280/http-bind/
ProxyPassReverse /http-bind http://localhost:5280/http-bind/

RewriteEngine on
RewriteRule ^/([a-zA-Z0-9]+)$ /index.html

On my system, certs are not here : /etc/letsencrypt/live/ but here /etc/letsencrypt/live/h2g2.ch

And what do you think about that piece :

DocumentRoot “/usr/share/jitsi-meet”
<Directory “/usr/share/jitsi-meet”>
Options Indexes MultiViews Includes FollowSymLinks
AddOutputFilter Includes html
AllowOverride All
Order allow,deny
Allow from all

That’s normal (assuming h2g2.ch is a directory). If you fix the lines in your apache config then do a reload, that should clear the apache errors, and might make de-installation easier.

Well I fixed both path but now, apache doesn’t restart !

sudo service apache2 start
Job for apache2.service failed because the control process exited with error code.
See “systemctl status apache2.service” and “journalctl -xe” for details.

And

systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Mon 2020-04-06 22:05:14 CEST; 35s ago
Process: 20251 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 18844 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE)
Process: 21087 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 8587 (code=exited, status=0/SUCCESS)

Apr 06 22:05:14 cerise systemd[1]: Starting The Apache HTTP Server…
Apr 06 22:05:14 cerise apachectl[21087]: AH00112: Warning: DocumentRoot [/usr/share/jitsi-meet] does not exist
Apr 06 22:05:14 cerise apachectl[21087]: Action ‘start’ failed.
Apr 06 22:05:14 cerise apachectl[21087]: The Apache error log may have more information.
Apr 06 22:05:14 cerise systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 06 22:05:14 cerise systemd[1]: apache2.service: Failed with result ‘exit-code’.
Apr 06 22:05:14 cerise systemd[1]: Failed to start The Apache HTTP Server

journalctl -xe
Apr 06 22:05:14 cerise systemd[1]: Failed to start The Apache HTTP Server.
– Subject: Unit apache2.service has failed
– Defined-By: systemd
– Support: http://www.ubuntu.com/support

– Unit apache2.service has failed.

– The result is RESULT.
Apr 06 22:05:14 cerise sudo[21065]: pam_unix(sudo:session): session closed for user root
Apr 06 22:05:16 cerise sshd[21094]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=49.88.112.75 user
Apr 06 22:05:18 cerise sshd[21094]: Failed password for root from 49.88.112.75 port 62923 ssh2
Apr 06 22:05:20 cerise sshd[21094]: Failed password for root from 49.88.112.75 port 62923 ssh2
Apr 06 22:05:22 cerise sshd[21094]: Failed password for root from 49.88.112.75 port 62923 ssh2
Apr 06 22:05:22 cerise sshd[21094]: Received disconnect from 49.88.112.75 port 62923:11: [preauth]
Apr 06 22:05:22 cerise sshd[21094]: Disconnected from authenticating user root 49.88.112.75 port 62923 [preauth]
Apr 06 22:05:22 cerise sshd[21094]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=49.88.112.75 user=root
Apr 06 22:05:34 cerise sshd[21096]: Invalid user postgres from 58.56.200.58 port 2456
Apr 06 22:05:34 cerise sshd[21096]: pam_unix(sshd:auth): check pass; user unknown
Apr 06 22:05:34 cerise sshd[21096]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=58.56.200.58
Apr 06 22:05:35 cerise sshd[21096]: Failed password for invalid user postgres from 58.56.200.58 port 2456 ssh2
Apr 06 22:05:36 cerise sshd[21096]: Received disconnect from 58.56.200.58 port 2456:11: Bye Bye [preauth]
Apr 06 22:05:36 cerise sshd[21096]: Disconnected from invalid user postgres 58.56.200.58 port 2456 [preauth]
Apr 06 22:05:47 cerise sshd[21099]: Invalid user dasusr from 111.67.196.5 port 53172
Apr 06 22:05:47 cerise sshd[21099]: pam_unix(sshd:auth): check pass; user unknown
Apr 06 22:05:47 cerise sshd[21099]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=111.67.196.5
Apr 06 22:05:50 cerise sshd[21099]: Failed password for invalid user dasusr from 111.67.196.5 port 53172 ssh2
Apr 06 22:05:50 cerise sshd[21099]: Received disconnect from 111.67.196.5 port 53172:11: Bye Bye [preauth]
Apr 06 22:05:50 cerise sshd[21099]: Disconnected from invalid user dasusr 111.67.196.5 port 53172 [preauth]
Apr 06 22:05:50 cerise sshd[21101]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=113.141.66.255 us
Apr 06 22:05:52 cerise sshd[21101]: Failed password for root from 113.141.66.255 port 43596 ssh2
Apr 06 22:05:52 cerise sshd[21101]: Received disconnect from 113.141.66.255 port 43596:11: Bye Bye [preauth]
Apr 06 22:05:52 cerise sshd[21101]: Disconnected from authenticating user root 113.141.66.255 port 43596 [preauth]
Apr 06 22:06:01 cerise sshd[21105]: Invalid user postgres from 213.32.67.160 port 52389
Apr 06 22:06:01 cerise sshd[21105]: pam_unix(sshd:auth): check pass; user unknown
Apr 06 22:06:01 cerise sshd[21105]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=213.32.67.160
Apr 06 22:06:03 cerise sshd[21105]: Failed password for invalid user postgres from 213.32.67.160 port 52389 ssh2
Apr 06 22:06:03 cerise sshd[21105]: Received disconnect from 213.32.67.160 port 52389:11: Bye Bye [preauth]
Apr 06 22:06:03 cerise sshd[21105]: Disconnected from invalid user postgres 213.32.67.160 port 52389 [preauth]
Apr 06 22:06:10 cerise sshd[21107]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=49.88.112.75 user
Apr 06 22:06:11 cerise sshd[21109]: Invalid user postgres from 119.27.161.165 port 45636
Apr 06 22:06:11 cerise sshd[21109]: pam_unix(sshd:auth): check pass; user unknown
Apr 06 22:06:11 cerise sshd[21109]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=119.27.161.165
Apr 06 22:06:12 cerise sshd[21107]: Failed password for root from 49.88.112.75 port 24895 ssh2
Apr 06 22:06:13 cerise sshd[21109]: Failed password for invalid user postgres from 119.27.161.165 port 45636 ssh2
Apr 06 22:06:13 cerise sshd[21109]: Received disconnect from 119.27.161.165 port 45636:11: Bye Bye [preauth]
Apr 06 22:06:13 cerise sshd[21109]: Disconnected from invalid user postgres 119.27.161.165 port 45636 [preauth]
Apr 06 22:06:14 cerise sshd[21107]: Failed password for root from 49.88.112.75 port 24895 ssh2
Apr 06 22:06:16 cerise sshd[21107]: Failed password for root from 49.88.112.75 port 24895 ssh2
Apr 06 22:06:16 cerise sshd[21107]: Received disconnect from 49.88.112.75 port 24895:11: [preauth]
Apr 06 22:06:16 cerise sshd[21107]: Disconnected from authenticating user root 49.88.112.75 port 24895 [preauth]
Apr 06 22:06:16 cerise sshd[21107]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=49.88.112.75 user=root

a2dissite /etc/apache2/sites-available/your-jitsi-config.conf

Should clear that

I haven’t jitsi config …

ls -la /etc/apache2/sites-available/
total 32
drwxr-xr-x 2 root root 4096 Apr 6 22:04 .
drwxr-xr-x 8 root root 4096 Mar 19 17:19 …
-rw-r–r-- 1 root root 1457 Mar 4 14:13 000-default.conf
-rw-r–r-- 1 root root 1517 Mar 4 14:12 000-default-le-ssl.conf
-rw-r–r-- 1 root root 6344 Mar 4 16:05 default-ssl.conf
-rw-r–r-- 1 root root 1578 Apr 6 21:56 h2g2.ch.conf
-rw-r–r-- 1 root root 207 Mar 4 16:09 webdav.conf

Well, jitsi was installed on h2g2.ch, but

sudo a2dissite /etc/apache2/sites-available/h2g2.ch.conf
ERROR: Site /etc/apache2/sites-available/h2g2.ch does not exist!