can't upgrade from 16.04 to 18.04

Asked by Miriam Campbell

I have tried for over a year now to upgrade from 16.04 to 18.04.

here's some info....
mim@miriam-s--desktop--computer:~$ uname -aLinux miriam-s--desktop--computer 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:00 UTC 2021 i686 i686 i686 GNU/Linux
.....
mim@miriam-s--desktop--computer:~$ lsb_release -aLSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:core-4.1-ia32:core-4.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
.....

Here is how it goes ...

mim@miriam-s--desktop--computer:~$ do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

OK so ....

mim@miriam-s--desktop--computer:~$ sudo apt update
[sudo] password for mim:
Err:1 https://https//adoptopenjdk.jfrog.io/adoptopenjdk/deb/pool/main/a xenial InRelease
  Could not resolve host: https
Hit:2 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://archive.canonical.com/ubuntu xenial InRelease
Hit:4 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://ca.archive.ubuntu.com/ubuntu xenial-security InRelease
Hit:6 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu xenial InRelease
Hit:7 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease
Hit:8 http://ppa.launchpad.net/dhor/myway/ubuntu xenial InRelease
Hit:9 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb xenial InRelease
Hit:10 https://qgis.org/ubuntu xenial InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch https://https//adoptopenjdk.jfrog.io/adoptopenjdk/deb/pool/main/a/dists/xenial/InRelease Could not resolve host: https
W: Some index files failed to download. They have been ignored, or old ones used instead.

then ...

mim@miriam-s--desktop--computer:~$ apt list --upgradable
Listing... Done
python-laditools/xenial 1.1.0-2 all [upgradable from: 1.0.1-2]
python-oauthlib/xenial 1.0.3-1 all [upgradable from: 0.6.1-1]
python-openssl/xenial-updates,xenial-security 0.15.1-2ubuntu0.2 i386 [upgradable from: 0.13-2ubuntu6]

Or if I try with apt-get upgrade ....

mim@miriam-s--desktop--computer:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done

Enable UA Infra: ESM to receive additional future security updates.
See https://ubuntu.com/16-04 or run: sudo ua status

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

The following packages have been kept back:
  python-laditools python-oauthlib python-openssl
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
mim@miriam-s--desktop--computer:~$

so then ...

mim@miriam-s--desktop--computer:~$ sudo ua status
SERVICE AVAILABLE DESCRIPTION
cis no Center for Internet Security Audit Tools
esm-infra yes UA Infra: Extended Security Maintenance (ESM)
fips no NIST-certified core packages
fips-updates no NIST-certified core packages with priority security updates
livepatch no Canonical Livepatch service

This machine is not attached to a UA subscription.
See https://ubuntu.com/advantage

I don't know what any of this stuff means and I don't get anywhere when I go to https://ubuntu.com/advantage either...

Please help!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Miriam Campbell
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Let's start with diagnostic commands.
In addition to what you have already delivered (that was a good start!), what is the output of the following commands:

lscpu
free -h
grep -i adoptopenjdk /etc/apt/sources.list /etc/apt/sources.list.d/*.list
apt --simulate dist-upgrade

Revision history for this message
Miriam Campbell (mimcamp) said :
#2

Thanks for responding. Here's the info ....

mim@miriam-s--desktop--computer:~$ lscpu
Architecture: i686
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 15
Model name: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Stepping: 6
CPU MHz: 1596.000
CPU max MHz: 2128.0000
CPU min MHz: 1596.0000
BogoMIPS: 4270.06
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 2048K
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow dtherm

and ...

mim@miriam-s--desktop--computer:~$ free -h
              total used free shared buff/cache available
Mem: 2.0G 770M 195M 135M 1.0G 871M
Swap: 4.0G 384K 4.0G

and ...

mim@miriam-s--desktop--computer:~$ grep -i adoptopenjdk /etc/apt/sources.list /etc/apt/sources.list.d/*.list
/etc/apt/sources.list:deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ xenial main
/etc/apt/sources.list:# deb-src https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ xenial main
/etc/apt/sources.list:deb https://https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/pool/main/a/ xenial main
/etc/apt/sources.list:# deb-src https://https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/pool/main/a/ xenial main

and the last item ...

mim@miriam-s--desktop--computer:~$ apt --simulate dist-upgrade
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Also keep in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done

Enable UA Infra: ESM to receive additional future security updates.
See https://ubuntu.com/16-04 or run: sudo ua status

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

The following packages have been kept back:
  python-laditools python-oauthlib python-openssl
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Does that help??

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What is the output of:

uname -a

Thanks

Revision history for this message
Miriam Campbell (mimcamp) said :
#4

mim@miriam-s--desktop--computer:~$ uname -a
Linux miriam-s--desktop--computer 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:00 UTC 2021 i686 i686 i686 GNU/Linux

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Ahh 32bit. Ubuntu is only 64bit. Your CPU is 64bit too so I recommend you wipe the install off and do a clean install of Focal (Ubuntu 20.04) as a 64bit version

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

You have a CPU that is capable of running in 32bit and 64bit mode.
Currently you have the 32bit variant of Ubuntu installed, but newer Ubuntu releases come only in the 64bit variant. Ubutnu 18.04 is the last release with 32bit support.

You now have the choice to
- either do a release-upgrade from 16.04 32bit to 18.04 32bit, but that is a dead end, with support ending in April 2023 and no further upgrades possible
- or do a complete new installation with the 64bit variant (either 18.04, or much better already with Ubuntu 20.04, supported until April 2025, and upgradable further).

If you want to try the upgrade to 18.04 32bit, then please provide the output of

apt-mark showhold

Revision history for this message
Miriam Campbell (mimcamp) said :
#7

Oh wow, very interesting information! - let me read this over and have a think!
I'll post in a minute.
Thank you

Revision history for this message
Miriam Campbell (mimcamp) said :
#8

While I'm thinking I tried to get something from that command...

mim@miriam-s--desktop--computer:~$ apt-mark showhold
mim@miriam-s--desktop--computer:~$

and I get nothing. What does that tell you (either of you guys)

Revision history for this message
Miriam Campbell (mimcamp) said :
#9

As far as the information I've provided, do I have a computer capable of running Focal (Ubuntu 20.04) as a 64bit version? In other words, are there more considerations than just the CPU running in 32bit or 64bit mode?
Thank you

Revision history for this message
Miriam Campbell (mimcamp) said :
#10

And ... can either of you give me a very detailed, clear, step-by-step explanation of exactly how to do "a wipe" and "clean install" of 20.04 ?
Thank you !

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

The partitions with Ubuntu on, Mark them for formatting in the installer (use the something else option when it comes to disk setup). Obviously run a final full backup before you start this unless there is nothing of value on the system.

You can then use the same partitions for the same use and be OK. Alternatively you can use gparted on the Ubuntu CD to delete the Ubuntu partitions then run the installer and use the unpartitioned space for Ubuntu

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

"are there more considerations than just the CPU running in 32bit or 64bit mode?"

The available memory may also be a limiting factor for newer releases.
You have 2 Gb. That's not abundant, but sufficient.

"can either of you give me a step-by-step explanation?"

The first question is, whether you have data on the system that you want to keep. YOU have to create backup copies on an external medium, or they will most probably be lost.

The next question is whether you currently have a specific disk layout, or just the standard way of partitioning. If you have a adapted layout, do you want to keep it? Otherwise you can just install the new Ubuntu version occupying the whole disk.

Everything else: https://ubuntu.com/tutorials/install-ubuntu-desktop

Revision history for this message
Miriam Campbell (mimcamp) said :
#13

I'm embarrassed at my lack of understanding of things and terminology, but here is what I can say: When I switched from Windows to Ubuntu I re-jigged everything. I got an external hard drive and used G-Parted to partition everything up so that the new Ubuntu operating system (/) was alone on one partition, and /home was on another partition, and the old Windows XP version was alone on another partition, and all my files/documents were on separate partitions (eg. media, photos, documents are each on separate partitions) That was quite some time ago and I can't entirely recall how to use G-Parted

So, you tell me my "memory" is 2 GB. I guess I'll chance that that is enough memory for 20.04. I suppose I could insert another memory card?? (is that what is called RAM?? haha - I know I'm such an idiot!) to potentially improve the situation?
Thank you

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

Yes, memory and RAM (=random access memory) are two names for the same thing.
2 GB is sufficient for running Ubuntu, but of course the ore, the better.
Adding more RAM could be a good idea, but the possibilities depend on your hardware. Is this a laptop or a desktop/tower computer?

If you already have a separate /home partition (and eventually even more), you should keep that.
The installation dialogue will allow doing this, and that should even preserve all file that you currently have on your system. Just make sure not to tick "format partition" for those during the installation.

For an overview about the current partitions you can use the commands
cat /etc/fstab
mount | grep -v loop

Revision history for this message
Miriam Campbell (mimcamp) said :
#15

I have a desktop tower. It is about 13 years old now. I'm sure some people would consider that ancient! But other than having to replace a graphics card a while back, it still runs perfectly fine (if a little slow, granted)

I'll show you the output of these commands - I really can't make heads or tails of the output of the second command! Is it possible to just briefly indicate what can be gleaned from all that?

Thanks

mim@miriam-s--desktop--computer:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb2 during installation
UUID=8025d1d1-890e-4c8d-ad05-f889f0ee11a1 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda3 during installation
UUID=ce57d363-15f8-4708-9a40-5b6e743e5242 /home ext4 defaults 0 2
# swap was on /dev/sdb5 during installation
UUID=570d0f6a-00f9-41a5-97c5-7f1f43343f88 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

mim@miriam-s--desktop--computer:~$ mount | grep -v loop
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1009560k,nr_inodes=208938,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=206164k,mode=755)
/dev/sdb2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (rw,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb,release_agent=/run/cgmanager/agents/cgm-release-agent.hugetlb)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids,release_agent=/run/cgmanager/agents/cgm-release-agent.pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event,release_agent=/run/cgmanager/agents/cgm-release-agent.perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda3 on /home type ext4 (rw,relatime,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,size=100k,mode=755)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=206164k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sda2 on /media/mim/Go-Between type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
mim@miriam-s--desktop--computer:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

For your computer: if you want to extend the memory, you will have to check whether there are empty sockets in your computer, and whether memory chips fitting to that system will still be available.

For the output: ignore all lines except

/dev/sdb2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)

/dev/sda3 on /home type ext4 (rw,relatime,data=ordered)

/dev/sda2 on /media/mim/Go-Between type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

and these tell that you have the root (/) partition on /dev/sdb2, a separate /home partition on /dev/sda3 and a ntfs-formatted partition (/dev/sda2) that is mounted on /media/mim/Go-Between

Revision history for this message
Miriam Campbell (mimcamp) said :
#17

Well, you certainly have provided a lot of information about my predicament and I thank you kindly for all your help.
I will see what I can do from here.
Thanks to you both, for all your help.
Miriam