Question

While installing package using apt-get i am getting this error on my ubuntu droplet

So when i try to install any package on my ubuntu 18.04 machine I am getting below error e.g when i do “sudo apt upgrade” I am getting same error “sudo apt-get install sqlite3 libsqlite3-dev” when i run this command i am getting same error Why this is happening and what’s the solution ?

E: Can’t find a source to download version ‘21.2-3-g899bfaa9-0ubuntu2~18.04.1’ of ‘cloud-init:amd64’

Subscribe
Share

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

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.

This comment has been deleted

This comment has been deleted

This comment has been deleted

This comment has been deleted

This comment has been deleted

This comment has been deleted

Hi @farhanaftab25,

Excuse me for the question but I’m not sure I fully understood the question, so whether you do sudo apt upgrade or sudo apt-get install sqlite3 libsqlite3-dev, you always get E: Can’t find a source to download version ‘21.2-3-g899bfaa9-0ubuntu2~18.04.1’ of ‘cloud-init:amd64’, is that correct?

If that’s the case, I’ll recommend trying to do the following:

sudo apt update
sudo apt upgrade

and then the rest.

If that doesn’t help as well, I’ll recommend adding the standard repos in your /etc/apt/sources.list.