Remove All the Certbot Deps

Hi
Tryin to remove a Certbot from Ubuntu

NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"

with

sudo apt-get purge certbot
sudo apt autoremove
sudo apt clean

Still

apt list --installed | grep certbot

shows some libs

python3-asn1crypto/xenial,now 0.22.0-2+ubuntu16.04.1+certbot+1 all [installed,automatic]
python3-cffi-backend/xenial,now 1.5.2-1ubuntu1 amd64 [installed,upgradable to: 1.10.0-0.1+ubuntu16.04.1+certbot+1]
python3-chardet/xenial,now 2.3.0-2 all [installed,upgradable to: 3.0.4-1+ubuntu16.04.1+certbot+2]
python3-configobj/xenial,now 5.0.6-2 all [installed,upgradable to: 5.0.6-2+ubuntu16.04.1+certbot+1]
python3-cryptography/xenial,now 1.9-1+ubuntu16.04.1+certbot+2 amd64 [installed]
python3-idna/xenial,now 2.5-1+ubuntu16.04.1+certbot+1 all [installed]
python3-ndg-httpsclient/xenial,now 0.4.2-1+certbot~xenial+1 all [installed,automatic]
python3-openssl/xenial,now 17.3.0-1~0+ubuntu16.04.1+certbot+1 all [installed,automatic]
python3-pkg-resources/xenial,now 20.7.0-1 all [installed,upgradable to: 33.1.1-1+certbot~xenial+1]
python3-pyasn1/xenial,now 0.1.9-1 all [installed,upgradable to: 0.1.9-2+certbot~xenial+1]
python3-requests/xenial-updates,xenial-security,now 2.9.1-3ubuntu0.1 all [installed,upgradable to: 2.18.1-1+ubuntu16.04.1+certbot+1]
python3-six/xenial,now 1.10.0-3 all [installed,upgradable to: 1.11.0-1+ubuntu16.04.1+certbot+1]
python3-urllib3/xenial-updates,xenial-security,now 1.13.1-2ubuntu0.16.04.4 all [installed,upgradable to: 1.21.1-1+ubuntu16.04.1+certbot+1]

They seem to be just standalone packs but what really +certbot+ means.
Please how to tell who depends on these and ensure that all certbpt deps are completely removed?

Thx

1 Like

P.S.
It is not python3-certbot either

sudo apt-get purge python3-certbot
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'python3-certbot' is not installed, so not removed

I suppose that Ubuntu 16 is so old that not only can you no longer install anything from apt, you can no longer fully uninstall anything from apt.
But that is just my guess.

Can you do?:
apt install certbot
If so, then do:
apt remove certbot
If not, then that is an indication of apt no longer knowing exactly what to do.

3 Likes

Well that theory seems like a fail...

This is what an Ubuntu 16 shows:

#apt install certbot

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-acme
  python-certbot python-cffi-backend python-chardet python-configargparse
  python-configobj python-cryptography python-enum34 python-funcsigs
  python-idna python-ipaddress python-josepy python-minimal python-mock
  python-ndg-httpsclient python-openssl python-parsedatetime python-pbr
  python-pkg-resources python-pyasn1 python-pyicu python-requests
  python-requests-toolbelt python-rfc3339 python-setuptools python-six
  python-tz python-urllib3 python-zope.component python-zope.event
  python-zope.hookable python-zope.interface python2.7 python2.7-minimal
Suggested packages:
  python-certbot-apache python-certbot-nginx python-certbot-doc python-doc
  python-tk python-acme-doc python-configobj-doc python-cryptography-doc
  python-cryptography-vectors python-enum34-doc python-funcsigs-doc
  python-mock-doc python-openssl-doc python-openssl-dbg doc-base
  python-setuptools-doc python-ntlm python2.7-doc binfmt-support
The following NEW packages will be installed:
  certbot libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python
  python-acme python-certbot python-cffi-backend python-chardet
  python-configargparse python-configobj python-cryptography python-enum34
  python-funcsigs python-idna python-ipaddress python-josepy python-minimal
  python-mock python-ndg-httpsclient python-openssl python-parsedatetime
  python-pbr python-pkg-resources python-pyasn1 python-pyicu python-requests
  python-requests-toolbelt python-rfc3339 python-setuptools python-six
  python-tz python-urllib3 python-zope.component python-zope.event
  python-zope.hookable python-zope.interface python2.7 python2.7-minimal
0 upgraded, 39 newly installed, 0 to remove and 1 not upgraded.
Need to get 5,758 kB of archives.
After this operation, 27.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]

I do see some of those listed - but not all.

3 Likes

thx for your reply
The install doesn't suggest this libs as well

sudo apt install certbot
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  python3-acme python3-certbot python3-configargparse python3-funcsigs python3-future python3-icu python3-josepy python3-mock python3-parsedatetime python3-pbr python3-requests-toolbelt
  python3-rfc3339 python3-tz python3-zope.component python3-zope.event python3-zope.hookable python3-zope.interface
Suggested packages:
  python3-certbot-apache python3-certbot-nginx python-certbot-doc python-acme-doc python-funcsigs-doc python-future-doc python-mock-doc
The following NEW packages will be installed:
  certbot python3-acme python3-certbot python3-configargparse python3-funcsigs python3-future python3-icu python3-josepy python3-mock python3-parsedatetime python3-pbr
  python3-requests-toolbelt python3-rfc3339 python3-tz python3-zope.component python3-zope.event python3-zope.hookable python3-zope.interface
0 upgraded, 18 newly installed, 0 to remove and 99 not upgraded.
Need to get 1,177 kB of archives.
After this operation, 6,393 kB of additional disk space will be used.
Do you want to continue? [Y/n]

But what these +certbot+ could mean. Does this really (in theory / by some conventions) show a a dependency of certbot on these?

Is there a way to check any other installed libs depend on these
So that to be sure to remove them just manually?

I added certbot [to Ubuntu 16.04.7]:
apt install certbot

Then I did your steps and everything that was added was removed.

So, I think more than just certbot has been added.

I would not remove anything manually.

Try adding/removing these other packages:

apt list | grep certbot

certbot/xenial-updates,xenial-updates 0.27.0-1~ubuntu16.04.1 all
python-certbot/xenial-updates,xenial-updates 0.27.0-1~ubuntu16.04.1 all
python-certbot-apache/xenial-updates,xenial-updates 0.23.0-1~ubuntu16.04.1 all
python-certbot-apache-doc/xenial-updates,xenial-updates 0.23.0-1~ubuntu16.04.1 all
python-certbot-doc/xenial-updates,xenial-updates 0.27.0-1~ubuntu16.04.1 all
3 Likes

No it is all

 is not installed, so not removed

What is strange you don't have any of these +certbot+ in your list.

Anyway if it is not that clear I will just leave it as is

Thanks for you help

1 Like

Have you installed anything using pip ?
history | grep pip | grep install

For that matter:
history | grep certbot | grep install

2 Likes

there's no pip nor pip3 installed just a python 2.7.12

The history is too old to keep the installation

Yeah, I should have known better - LOL

What shows?:
sudo apt list --installed | grep pip

2 Likes

it is just some libpipeline1

libpipeline1/xenial,now 1.4.1-2 amd64 [installed]
1 Like

I don't know how you got some of these things...
The closest thing I show is:

python3-cryptography/xenial-updates,xenial-security 1.2.3-1ubuntu0.3 amd64

Much lower number.

2 Likes

Anyway I would. just abandon just on this.
I think these couple of libs are not the very worst stuff at all on this exact instance )))

thanks once again!

1 Like

hmm...

What about via snap ?

snap list

[and sorry about my persistence - LOL]

2 Likes
No snaps are installed yet.

I've checked another twin. instance and it has. additionally python3-certbot.
What I've tried is to force install python3-certbot and it actually logged a lot of such +certbot+ while install

But removing it didn't affect initial list. (

Very strange indeed.

Sorry that I wasn't of more help :rose:
If you can sleep with them there, then so can I - LOL

Cheers from Miami :beers:
[definitely my last post about this]

3 Likes

))))) see ya

Those +certbot packages come from the (long deprecated) Ubuntu PPA: Certbot PPA : “certbot” team.

Some of them are going to be version upgrades to packages that are in the base Xenial repositories.

For example, in most cases python3-requests is relied upon by other packages on your system, so removing it is not an option. But you can upgrade it to a package newer than both the PPA and Xenial (such as from Ubuntu Bionic .... boy you really have a long way to upgrade).

7 Likes