The theory of upgrading from 14.04 to 15.04 using /etc/apt/sources.list
William Scott Lockwood III
scott at guppylog.com
Mon Aug 10 15:32:32 UTC 2015
On Mon, Aug 10, 2015 at 10:22 AM, <silver.bullet at zoho.com> wrote:
> The OP could install a backup of the real install in the VM. Graphics
> driver, sound card and similar need a fix, but anything else wouldn't
> differ.
It's really not even that hard.
dpkg -l | grep ii | cut -d ' ' -f3 >pkglist
Now you can edit the file pkglist to add
#!/bin/bash
sudo apt-get install
and have the list of packages after that. Yes, you'll need to remove
all the newlines and replace them with spaces. This is trivial but the
steps are dependent on what editor you're using. After that, make sure
your sources.list.d and sources.list all match up in the vm, and run
the script. Congrats, you now have a system with all the same
_packages_ as your source system, and can test your upgrade.
Protip: Take a snapshot at this point, and you can then test a variety
of different upgrade methods, and generally speaking, learn stuff.
--
W. Scott Lockwood III
More information about the ubuntu-users
mailing list