upgrading from 15.10 to 16.04 apt not installed
Solution 1
Had the same problem, solved by forcing the update of apt and cleaning the current installation as Andrew suggested:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install # (not "install -f"!)
sudo apt-get -y install apt
sudo do-release-upgrade
Solution 2
I had this error, for me I was missing the wily-updates line from my /etc/apt/sources.list:
deb http://archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
Solution 3
I had this issue too, this will update all your goodies as well as upgrade from 15 to 16.
Go to Software and Updates
> Updates
Tick On the Following
- Wily Security
- Wily Updates
- Wily Proposed
Update and Upgrade Current System
sudo apt-get update && sudo apt-get upgrade
Get the Upgrade
sudo apt-get dist-upgrade
Upgrade in CLI
sudo do-release-upgrade
Solution 4
The former posted solutions didn't work for me.
What worked was, as found in the comments on launchpad:
wget http://launchpadlibrarian.net/254524267/apt_1.0.10.2ubuntu2_amd64.deb
wget http://launchpadlibrarian.net/254524264/apt-transport-https_1.0.10.2ubuntu2_amd64.deb
wget http://launchpadlibrarian.net/254524266/apt-utils_1.0.10.2ubuntu2_amd64.deb
wget http://launchpadlibrarian.net/254524269/libapt-inst1.7_1.0.10.2ubuntu2_amd64.deb
wget http://launchpadlibrarian.net/254524270/libapt-pkg4.16_1.0.10.2ubuntu2_amd64.deb
sudo dpkg --install apt_1.0.10.2ubuntu2_amd64.deb apt-transport-https_1.0.10.2ubuntu2_amd64.deb apt-utils_1.0.10.2ubuntu2_amd64.deb libapt-inst1.7_1.0.10.2ubuntu2_amd64.deb libapt-pkg4.16_1.0.10.2ubuntu2_amd64.deb
sudo do-release-upgrade
Solution 5
I had the exact same problem with 'apt'. I got the solution from this link. Run sudo dpkg -l | grep apt
. You may see this entry in the output of the command :
ii apt 1.0.10.2ubuntu1 amd64 commandline package manager
If you do, you will need to get the required apt(>=1.0.10.2 ubuntu2). Here are the steps which I followed :
Go to Software & Update -> Ubuntu Software . Change the Server to Main server.(in my case, I changed to Server for India). I was using a different mirror previously and hence had an older 'apt' version.
-
Run
sudo apt-get update sudo apt-get install --reinstall apt
Run
sudo dpkg -l | grep apt
again to check version has changed. Hopefully the entry in the output should have changed to : apt 1.0.10.2ubuntu2.Run a
sudo apt-get update && sudo apt-get upgrade
following which you can proceed to update to ubuntu 16.04.
Related videos on Youtube
paul
Updated on September 18, 2022Comments
-
paul over 1 year
When trying to upgrade using the terminal, my upgrade stops. This is the line showing in the terminal:
The required dependency 'apt(>=1.0.10.2 ubuntu2)' is not installed.
my problem is that I don't know the command to install this dependency. Using other commands, it says apt is up to date. Solutions?
-
paul about 8 yearsthere is something else blocking my installation of apt. following the instructions listed, it still indicates that apt is up-to-date. however, when i get to do-release-upgrade, it cannot find apt, or at least the correct apt.
-
paul about 8 yearsfollowed the advice listed. the command package manager did come up with ver. 1.0.10.2 ubuntu1. but the two commands to change to ubuntu2 did not yield a change(still ubuntu1). as this a security change, could it be caused by a security problem?
-
Rahul about 8 yearsI am by no means an expert in this, but I think an another alternative would be to use this deb to perhaps solve the problem.
-
paul about 8 yearsi am uncomfortable downloading and installing ubuntu2 files until i can establish why the files are not available through the command line(terminal). i have limited experience extracting and installing from a download.
-
Vladimir Panteleev almost 8 yearsFor ARM etc. the line should be
deb http://ports.ubuntu.com/ wily-updates main restricted universe multiverse
-
marko over 7 yearsBut that install from 15.10 to 16.xx sth.
-
joat over 7 yearsI'm thinking that it should be "deb ports.ubuntu.com trusty-updates main restricted universe multiverse" (i.e., it turns on the extra repos). Mixing versions (e.g., trusty and wily) never ends well.
-
joat over 7 yearsAfter doing that, "apt-get update && apt-get -y upgrade && do-release-upgrade" appears to work. Note: you may need to comment out the /tmp line in /etc/fstab, to avoid running out of temporary space.
-
wsw almost 6 years@marko You just need to repeat the step a few times.
-
Evgeniy over 4 yearsThis is essential if you upgrading from old Ubuntu version, like 15.xx. Also keep in mind that they no longer provide archive.ubuntu.com/ubuntu url for wily and other old releases. Use old-releases.ubuntu.com/ubuntu instead.