|This is another in the series documenting my setup of a new home server with the Linksprite pcDuino3 Nano. A listing for the entire series can be found here. More information on the pcDuino3 Nano can be found at Linksprite’s website and thepcDuino website.|
Now that we have completed the kernel upgrade the next step is to download and apply Ubuntu upgrades. You may have caught that the date in the filename of the Ubuntu image was August 7, 2014. That means that any updates that have been made available for Ubuntu since that time need to be applied to the system.
Ubuntu components are updated on an ongoing basis and this process can be used to update them on your system even if you haven’t updated the kernel.
There is a lot of good information on www.pcduino.com. On this topic you should check out the blog post Chapter 1: Hardware and Software Introductions of pcDuino.
You will need to be connected to the Internet for this process.
1) From a terminal window (or the console connection if you have one) you type in the sudo apt-get update. If you get back a long stream of messages connecting to websites and downloading data as shown below that everything is working correctly.
ubuntu@ubuntu:~$ sudo apt-get update Ign http://ppa.launchpad.net precise InRelease Ign http://ports.ubuntu.com precise InRelease Ign http://ports.ubuntu.com precise-security InRelease Ign http://ports.ubuntu.com precise-updates InRelease Hit http://ppa.launchpad.net precise Release.gpg Hit http://ports.ubuntu.com precise Release.gpg Get:1 http://ports.ubuntu.com precise-security Release.gpg [198 B] Get:2 http://ports.ubuntu.com precise-updates Release.gpg [198 B] Hit http://ppa.launchpad.net precise Release <messages removed to save space> Fetched 396 B in 8s (49 B/s) Reading package lists... Done W: Conflicting distribution: http://www.wiimu.com pcduino Release (expected pcduino but got )
The last line you get is warning that one of the repositories isn’t configured correctly this isn’t a fatal error and the process completes.
If you get back a slow stream of message that start with Err you are most likely not connected to the Internet.
ubuntu@ubuntu:~$ sudo apt-get update Err http://www.wiimu.com pcduino InRelease Err http://ppa.launchpad.net precise InRelease Err http://ports.ubuntu.com precise InRelease Err http://www.wiimu.com pcduino Release.gpg Temporary failure resolving 'www.wiimu.com' Err http://ppa.launchpad.net precise Release.gpg Temporary failure resolving 'ppa.launchpad.net' Err http://ports.ubuntu.com precise-security InRelease ^C
Confirming Internet Connectivity
You can confirm Internet connectivity using the ping command as shown below. If you get a series or replies you are connected to the Internet.
ubuntu@ubuntu:~$ ping -c 5 www.google.com PING www.google.com (126.96.36.199) 56(84) bytes of data. 64 bytes from yk-in-f106.1e100.net (188.8.131.52): icmp_req=1 ttl=246 time=24.0 ms 64 bytes from yk-in-f106.1e100.net (184.108.40.206): icmp_req=2 ttl=246 time=27.0 ms 64 bytes from yk-in-f106.1e100.net (220.127.116.11): icmp_req=3 ttl=246 time=25.2 ms 64 bytes from yk-in-f106.1e100.net (18.104.22.168): icmp_req=4 ttl=246 time=25.6 ms 64 bytes from yk-in-f106.1e100.net (22.214.171.124): icmp_req=5 ttl=246 time=24.6 ms --- www.google.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 24.003/25.340/27.070/1.039 ms If the system appears to hang and eventually comes back as follows you do not have Internet connectivity. ubuntu@ubuntu:~$ ping -c 5 www.google.com ping: unknown host www.google.com
2) The update phase updates the list of current software from the to your computer but doesn’t apply any of the updates. The next step sudo apt-get upgrade constructs a list of the packages that need updating and prompts you to confirm that you want to continue. If you type a return or Y the process will continue. If you type an n the process will stop without applying any updates.
ubuntu@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: libgrip0 The following packages will be upgraded: alsa-base alsa-utils apt apt-transport-https apt-utils base-files bash bc binutils bsdutils busybox-initramfs ca-certificates chromium-browser <messages removed to save space> xserver-xorg-video-all xserver-xorg-video-nouveau 275 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Need to get 216 MB of archives. After this operation, 33.8 MB of additional disk space will be used. Do you want to continue [Y/n]?
Once you continue the system will download all the updates and apply them on your system. This process can take quite a bit of time.
<messages removed to save space> Installing new version of config file /etc/pam.d/lightdm-autologin ... Configuration file `/etc/init/lightdm.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** lightdm.conf (Y/I/N/O/D/Z) [default=N] ? Setting up lightdm-gtk-greeter (1.1.5-0ubuntu1.1) ... Setting up openjdk-6-jre-lib (6b33-1.13.5-1ubuntu0.12.04) ... <messages removed to save space> Installing new version of config file /etc/rsyslog.conf ... rsyslog stop/waiting rsyslog start/running, process 12800 Setting up ifupdown (0.7~beta2ubuntu11.1) ... Installing new version of config file /etc/init/network-interface.conf ... Setting up network-manager-gnome (0.9.4.1-0ubuntu2.3) ... Setting up resolvconf (1.63ubuntu16) ... Installing new version of config file /etc/ppp/ip-down.d/000resolvconf ... Installing new version of config file /etc/ppp/ip-up.d/000resolvconf ... Setting up ubuntu-minimal (1.267.1) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Processing triggers for libgdk-pixbuf2.0-0 ... Processing triggers for initramfs-tools ... Processing triggers for resolvconf ... ubuntu@ubuntu:~$
When you get back to the prompt all the updates have been applied.
For more details, please refer to original post