I am upgrading from 13.10 to 14.04 in Terminal mode.
My understanding is that apt-get update updates the list of available repos, and apt-get upgrade performs the upgrade. It's true that I did not understand the difference between sudo apt-get upgrade
and do-release-upgrade
. Thanks for explaining this point.
To clarify my process, Muon Update Manager could not download any data, regardless of the settings I used, and believe me, I tried them all.
So I decided to work exclusively in Terminal, which helps my understanding when things get a bit complicated.
Initially, I tried do-release-upgrade
, which gave an error message.
In order to perform
sudo apt-get update
, I needed to set `Prompt=normal.
I researched this online, and similar to the experience of others, at least in 13.10, sudo apt-get update
would not run, with Prompt=lts
. With Prompt=normal
, it did.
sudo apt-get update
completed successfully (after much tweaking of existing repos insources.list.d
andsources.list
).
At first, running sudo apt-get update
resulted in numerous errors.
Online research discovered several very similar situations which indicated that third-party ppa's can block sudo apt-get update
.
Each time I deleted an entry from sources-list.d
, apt-get update
got a little further. As there were only four entries, all for third-party apps I don't really need, I ended up deleting them all, i.e., sources-list.d
is now empty.
When I looked at sources-list, I discovered it was a real mess (created by Update Manager), with several duplicate entries, a few bastardized entries, and archives from different locations. I'm in Canada, by the way.
I researched online and found an example of a pristine sources-list, then altered mine to match, commenting out the entries I did not want.
My sources-list now contains no references to "saucy", and is set to download only "trusty", "trusty-upgrades", and "trust-security".
Here it is (http's altered to avoid live links, comments indicated by "--" to avoid accidental bolding):
fiteyes@fiteyes-wr:~$ cat /etc/apt/sources.list
-- deb cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
-- See -ttp://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
-- newer versions of the distribution.
deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty main restricted
-- Major bug fix updates produced after the final release of the
-- distribution.
deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
-- N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
-- team. Also, please note that software in universe WILL NOT receive any
-- review or updates from the Ubuntu security team.
-- deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty universe
-- deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty universe
-- deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-updates universe
-- deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-updates universe
-- N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
-- team, and may not be under a free licence. Please satisfy yourself as to
-- your rights to use the software. Also, please note that software in
-- multiverse WILL NOT receive any review or updates from the Ubuntu
-- security team.
-- deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty multiverse
-- deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty multiverse
-- deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
-- deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
-- Uncomment the following two lines to add software from the 'backports'
-- repository
-- N.B. software from this repository may not have been tested as
-- extensively as that contained in the main release, although it includes
-- newer versions of some applications which may provide useful features.
-- Also, please note that software in backports WILL NOT receive any review
-- or updates from the Ubuntu security team.
-- deb -ttp://ca.archive.ubuntu.com/ubuntu/ Trusty-backports main restricted universe multiverse
-- deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ Trusty-backports main restricted universe multiverse
-- Uncomment the following two lines to add software from Canonical's
-- 'partner' repository.
-- This software is not part of Ubuntu, but is offered by Canonical and the
-- respective vendors as a service to Ubuntu users.
-- deb -ttp://archive.canonical.com/ubuntu trusty partner
-- deb-src -ttp://archive.canonical.com/ubuntu trusty partner
deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-security main restricted
-- deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-security universe
-- deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-security universe
-- deb -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-security multiverse
-- deb-src -ttp://ca.archive.ubuntu.com/ubuntu/ trusty-security multiverse
-- This software is not part of Ubuntu, but is offered by third-party
-- developers who want to ship their latest software.
-- deb -ttp://archive.ubuntu.com/ubuntu/ trusty main
-- deb-src -ttp://archive.ubuntu.com/ubuntu/ trusty main
-- deb -ttp://archive.ubuntu.com/ubuntu/ trusty, trusty-updates, trusty-security
-- deb-src -ttp://archive.ubuntu.com/ubuntu/ trusty, trusty-updates, trusty-security
fiteyes@fiteyes-wr:~$
sudo apt-get update now ran without errors.
Here are the results:
fiteyes@fiteyes-wr:~$ sudo apt-get update
Ign -ttp://ca.archive.ubuntu.com trusty InRelease
Ign -ttp://ca.archive.ubuntu.com trusty-updates InRelease
Ign -ttp://ca.archive.ubuntu.com trusty-security InRelease
Get:1 -ttp://ca.archive.ubuntu.com trusty Release.gpg [933 B]
Get:2 -ttp://ca.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:3 -ttp://ca.archive.ubuntu.com trusty-security Release.gpg [933 B]
Get:4 -ttp://ca.archive.ubuntu.com trusty Release [58.5 kB]
Get:5 -ttp://ca.archive.ubuntu.com trusty-updates Release [63.5 kB]
Get:6 -ttp://ca.archive.ubuntu.com trusty-security Release [63.5 kB]
Get:7 -ttp://ca.archive.ubuntu.com trusty/main Sources [1,064 kB]
Get:8 -ttp://ca.archive.ubuntu.com trusty/restricted Sources [5,433 B]
Get:9 -ttp://ca.archive.ubuntu.com trusty/main i386 Packages [1,348 kB]
Get:10 -ttp://ca.archive.ubuntu.com trusty/restricted i386 Packages [13.4 kB]
Get:11 -ttp://ca.archive.ubuntu.com trusty/main Translation-en_CA [7,324 B]
Get:12 -ttp://ca.archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:13 -ttp://ca.archive.ubuntu.com trusty/restricted Translation-en [3,457 B]
Get:14 -ttp://ca.archive.ubuntu.com trusty-updates/main Sources [196 kB]
Get:15 -ttp://ca.archive.ubuntu.com trusty-updates/restricted Sources [2,564 B]
Get:16 -ttp://ca.archive.ubuntu.com trusty-updates/main i386 Packages [500 kB]
Get:17 -ttp://ca.archive.ubuntu.com trusty-updates/restricted i386 Packages [9,256 B]
Get:18 -ttp://ca.archive.ubuntu.com trusty-updates/main Translation-en [243 kB]
Get:19 -ttp://ca.archive.ubuntu.com trusty-updates/restricted Translation-en [2,433 B]
Get:20 -ttp://ca.archive.ubuntu.com trusty-security/main Sources [80.2 kB]
Get:21 -ttp://ca.archive.ubuntu.com trusty-security/restricted Sources [2,061 B]
Get:22 -ttp://ca.archive.ubuntu.com trusty-security/main i386 Packages [256 kB]
Get:23 -ttp://ca.archive.ubuntu.com trusty-security/restricted i386 Packages [8,846 B]
Get:24 -ttp://ca.archive.ubuntu.com trusty-security/main Translation-en [136 kB]
Get:25 -ttp://ca.archive.ubuntu.com trusty-security/restricted Translation-en [2,266 B]
Ign -ttp://ca.archive.ubuntu.com trusty/restricted Translation-en_CA
Fetched 4,830 kB in 23s (206 kB/s)
Reading package lists... Done
Please note: this is a basic upgrade, no third-party ppa's (except possibly a grub editor, which I will add later).
I am concerned that running
sudo apt-get upgrade
now will take me all the way to 14.10, which I do not want.Will changing update-manager back to "Prompt=lts" at this point, ensure I get 14.04, or will that even work now that the "trusty" files have been downloaded?
I've searched through the duplicates and see nothing that answers this specific question.
I cannot do a fresh install, because I will lose valuable, remotely installed, health related software.
Any knowledgeable input appreciated.
Thanks
Thanks very much for your response thus far, Thomas. You've been very helpful. I have three follow-up questions:
Given what I've now explained, do you still recommend running do-release-upgrade.
For my edification, based on what I've now explained, what would sudo apt-get upgrade do?
My desire is to upgrade to 14.04 while keeping the app that was installed remotely in tact. Which of these methods, if either, will accomplish this?
Again, much appreciated. Look forward to your response. :)
Ran do-release-upgrade -c. "No saucy updates available", "Upgrade to trusty 14.04?".
Could include universe/multiverse, but my laptop is very small, 1.2 GHz, 27 GB hd, 1 GB RAM. Used only to run control software for my tonometer (for measuring my eye pressures).
I will backup my current system with Clonezilla, once I get it ready to upgrade.
I'd appreciate your final thoughts, then I'm good to go.
– Wayne Rose May 11 '15 at 22:29apt-get update
first now that you've restored sources.list to saucy if you are worried about the notification about software updates. – thomasrutter May 12 '15 at 00:00