Question

sudo apt install command takes forever and web console disconnects. why?

I’m running sudo apt install certbot python3-certbot-nginx nginx command in web console for my basic droplet with 10gb disk. and it take forever to finish this and always disconnects web console and have to start again tried this more than 10 times.

sudo apt install certbot python3-certbot-nginx nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libdeflate0 libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip2 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip2
  libtiff5 libwebp7 libxpm4 nginx-common nginx-core python3-acme python3-certbot python3-configargparse python3-icu python3-josepy python3-parsedatetime python3-requests-toolbelt python3-rfc3339 python3-zope.component python3-zope.event python3-zope.hookable
Suggested packages:
  python-certbot-doc python3-certbot-apache libgd-tools fcgiwrap nginx-doc ssl-cert python-acme-doc python-certbot-nginx-doc
The following NEW packages will be installed:
  certbot fontconfig-config fonts-dejavu-core libdeflate0 libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip2 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
  libnginx-mod-stream-geoip2 libtiff5 libwebp7 libxpm4 nginx nginx-common nginx-core python3-acme python3-certbot python3-certbot-nginx python3-configargparse python3-icu python3-josepy python3-parsedatetime python3-requests-toolbelt python3-rfc3339
  python3-zope.component python3-zope.event python3-zope.hookable
0 upgraded, 33 newly installed, 0 to remove and 16 not upgraded.
Need to get 3683 kB of archives.
After this operation, 13.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 fonts-dejavu-core all 2.37-2build1
Ign:2 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 fontconfig-config all 2.13.1-4.2ubuntu5
Ign:3 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 libdeflate0 amd64 1.10-2
Ign:4 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 libfontconfig1 amd64 2.13.1-4.2ubuntu5
Ign:5 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 libjpeg-turbo8 amd64 2.1.2-0ubuntu1
Ign:6 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 libjpeg8 amd64 8c-2ubuntu10
Ign:7 http://mirrors.digitalocean.com/ubuntu jammy-updates/main amd64 libjbig0 amd64 2.1-3.1ubuntu0.22.04.1
Ign:8 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 libwebp7 amd64 1.2.2-2
Ign:9 http://mirrors.digitalocean.com/ubuntu jammy-updates/main amd64 libtiff5 amd64 4.3.0-6ubuntu0.2
Ign:10 http://mirrors.digitalocean.com/ubuntu jammy/main amd64 libxpm4 amd64 1:3.5.12-1build2
0% [Working]                               


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
November 30, 2022

Hello, @itsmnthn

As mentioned the web console is intended for recovery purposes and you should normally use an ssh-client in your daily operations.

In this way, you’ll have a better experience and timeouts like this one should not occur.

You can check these articles:

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/putty/

Regards

KFSys
Site Moderator
Site Moderator badge
November 30, 2022

Hi @itsmnthn,

You’ll need to use your SSH terminal rather than the Web Console for such things. If you are on Windows you can use Putty for instance.

That way you’ll be able to see how the process continues and what is asked of you.