Score:0

Unable to upgrade from Ubuntu 16 to 18

vn flag

I want to update Ubuntu from 16 to 18. However, I have a few packages held back that I need not to be upgraded.

I tried running the following commands, but I get the error that the above packages that I need to not be upgraded are kept back:

# apt-get update
# apt-get upgrade -y
# apt-get dist-upgrade    
The following packages have been kept back:
  mailerq mailerq-5.13 mailerq-5.8
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

# do-release-upgrade
Checking for a new Ubuntu release

Please install all available updates for your release before upgrading
Pilot6 avatar
cn flag
There are no Ubuntu 16 or Ubuntu 18 releases.
Irsu85 avatar
cn flag
Do you mean Ubuntu 16.04 to 18.04?
guiverc avatar
cn flag
By Ubuntu 16 (no such release) do you mean Ubuntu Core 16? It's uses the snap application programs as Ubuntu Core 18 does (as they both use *snap* packages only) so such an error should not exist. Are you sure you're using 16 and not 16.04 (which is a different product!)
Nmath avatar
ng flag
Does this answer your question? [Can't upgrade Ubuntu 16.04 to newer release](https://askubuntu.com/questions/1365633/cant-upgrade-ubuntu-16-04-to-newer-release) 16.04 ended community support back in April. Since that deadline, there is no supported upgrade path unless you are on ESM. I suggest a clean install of the desired supported release.
karel avatar
sa flag
Does this answer your question? [How to install software or upgrade from an old unsupported release?](https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release)
karel avatar
sa flag
Does this answer your question? [How to prevent updating of a specific package?](https://askubuntu.com/q/18654/)
Score:0
id flag

I would advise a fresh install. Back everything up, and start from scratch. Even if you’re following an upgrade path, things can go wrong so you would still need good backups.

As you’re still using a 5 year old distribution (ie I assume you don’t like installing an os any more frequently than necessary), I’d suggest installing 20.04 LTS which will have full support and updates until April 2025 (4 years remaining). Even 18.04.6 LTS will only have full support for less than 2 remaining years, so you’ll have a further upgrade to do before very long. It makes sense to go for the more recent release now and benefit from the longer support.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.