I've built 2 fresh VMs of Ubuntu server. One is from the 18.04.1 ISO and the other is from an older 18.04 ISO. The issue I'm having is that 'apt get install ansible' doesn't work on the 18.04.1 VM whereas it will work on the 18.04 VM. (I should note that even if I add the ppa:ansible/ansible to the 18.04.1 VM it still doesn't work because it needs the sshpass module which also doesn't appear accessible on 18.04.1.)
So, digging into the differences between the two VMs I noticed that the 18.04 VM has 10 or so repositories (not including deb-src lines) in its /etc/apt/source.list file whereas the 18.04.1 only has 4.
I didn't see any notes in the 18.04.1 readme to indicate that the sources.list file would be different. So, what am I doing wrong here?
Had the same problem after installing this particular image.
only 3 sources were in
/etc/apt/sources.list
I had to add 7 other common sources manually with the help of these instructions on GitHub.
In short, the contents of the file should be as below. Use
sudo nano
or your favourite text editor to change the contents to this.Same issue here, there seems to be a bug and I haven’t found yet a clue how to fix it.
This is my
sources.list
:My Ubuntu Server version:
And the error:
FOUND A FIX:
I don’t really understand why the default install of Ubuntu 18.04.1 doesn’t include more sources in
/etc/apt/sources.list
by default it only includes:The way that I fix the missing packages was to add this:
https://gist.github.com/jackw1111/d31140946901fab417131ff4d9ae92e3
Had the same problem with the version you get by default when downloading the server version. This uses the new Subiquity installer, which is a bit different and apparently gives a slightly different result. Seems more geared towards the cloud...
Read the text and downloaded the alternative installer version, which is the good old installer... The sources.list is as one would expect with this version.