Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-1015-raspi aarch64) Documentation: https://help.ubuntu.com Management: https://landscape.canonical.com Support: https://ubuntu.com/advantage System information as of Wed Apr 1 17:56:49 UTC 2020 System load: 0.0 Temperature: 45.8 C Usage of /: 6.4% of 28.96GB Processes: 130 Memory usage: 6% Users logged in: 0 Swap usage: 0% IPv4 address for eth0: 192.168.1.54 0 updates can be installed immediately. 0 of these updates are security updates. Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings Last login: Wed Apr 1 17:56:14 2020 from 192.168.1.6 To run a command as administrator (user "root"), use "sudo ". See "man sudo_root" for details. ubuntu@ubuntu:~$ ping ge.com PING ge.com (188.8.131.52) 56(84) bytes of data. 64 bytes from crs.ultradns.net (184.108.40.206): icmp_seq=1 ttl=56 time=5.84 ms 64 bytes from crs.ultradns.net (220.127.116.11): icmp_seq=2 ttl=56 time=8.40 ms ^C --- ge.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 4.237/7.358/11.213/2.369 ms root@ubuntu:~# cat /dev/null > /var/lib/ubuntu-release-upgrader/release-upgrade-available root@ubuntu:~# apt update Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [111 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [98.3 kB] Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [107 kB] Reading package lists… Done E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal/InRelease is not valid yet (invalid for another 21d 23h 34min 16s). Updates for this repository will not be applied. E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 189d 22h 50min 49s). Updates for this repository will not be applied. E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 189d 22h 51min 14s). Updates for this repository will not be applied. E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 189d 22h 50min 37s). Updates for this repository will not be applied. root@ubuntu:~# date Wed Apr 1 17:59:09 UTC 2020 root@ubuntu:~#
What’s going on here? Ubuntu claims it can’t update because it can’t connect to the Internet, but I can ping. A quick websearch tells me to clear out the “updates available” because of some issue I don’t care to research. Try it again! Nope! But throws a clue. Check the date! A-ha! Set the date. But wait, Raspberries don’t have RTC (realtime clock) batteries. I need ntp (network time protocol). I can install that with apt-get, but first, I gotta’ set the date. And before I set the date, I need to set the timezone!
If you’re not sure of your timezone, you can list them with:
I live on the East Coast of the US, so mine is America/New_York. Here’s the command:
timedatectl set-timezone America/New_York
Next, the date:
root@ubuntu:~# date Wed Apr 1 17:59:09 UTC 2020 root@ubuntu:~# date 10081320 Thu Oct 8 13:13:20 EDT 2020 root@ubuntu:~# apt update Reading package lists… Done E: Could not get lock /var/lib/apt/lists/lock. It is held by process 3274 (apt-get) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to lock directory /var/lib/apt/lists/
Pretty cool. Once I set the date, Ubuntu took over figuring out what’s what by running apt update in the background! I’ll check in later.
Two Hours Later…
Look at what I get after log in:
51 updates can be installed immediately. 0 of these updates are security updates. To see these additional updates run: apt list --upgradable *** System restart required *** Last login: Wed Apr 1 14:33:54 2020 from 192.168.1.10 ubuntu@ubu1:~$
All right! Let’s do this!
ubuntu@ubu1:~$ ubuntu@ubu1:~$ sudo su - root@ubu1:~# apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages have been kept back: base-files sosreport ubuntu-server The following packages will be upgraded: alsa-ucm-conf apport bcache-tools bolt bsdutils cloud-init command-not-found fdisk finalrd initramfs-tools initramfs-tools-bin initramfs-tools-core language-selector-common libasound2 libasound2-data libblkid1 libc-bin libc6 libdns-export1109 libfdisk1 libisc-export1105 liblzma5 libmount1 libpam-modules libpam-modules-bin libpam-runtime libpam0g libsmartcols1 libuuid1 linux-firmware locales mdadm mount python3-apport python3-commandnotfound python3-distupgrade python3-problem-report rsyslog snapd sudo tmux ubuntu-minimal ubuntu-release-upgrader-core ubuntu-standard unattended-upgrades util-linux uuid-runtime xz-utils zlib1g 49 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. Need to get 137 MB of archives. After this operation, 2241 kB of additional disk space will be used. Do you want to continue? [Y/n]
Answer “Y” and let ‘er rip!