I can't update, upgrade and remove my app from kubuntu

Solution 1:

It looks like the package manager is trying to retrieve packages that no longer exist on the server. This happens when the information on your Ubuntu system about what packages are available in what versions is out of date.

If you are updating with the Software Center or the Update Manager, this should not be happening, as they are supposed to automatically retrieve up-to-date information about what packages and versions are available.

However, if you are using the command line and you're just running sudo apt-get upgrade, this is entirely expected. When updating your system or installing new software from the command line, you should run sudo apt-get update first. So, to upgrade, run:

sudo apt-get update
sudo apt-get upgrade

(To make sure you're upgraded, you may want to then run sudo apt-get dist-upgrade to catch any updates that require other packages to be installed or removed. Unless you're experienced at knowing what packages can and cannot be removed safely, I recommend running that after sudo apt-get upgrade.)

For a more detailed explanation of why it's important to run sudo apt-get update and what each of the commands does, take a look at:

  • What does "sudo apt-get update" do?