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


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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel