1.3 KiB
1.3 KiB
Ubuntu Desktop 4.3: Packages from more than one source
Adding and removing a PPA, installing a downloaded .deb with dpkg, and
switching a snap between channels.
Before you start
The lab makes sure git is installed and the hello deb isn't (reset
puts it back if you had it). The VM needs to reach the Ubuntu archive,
Launchpad and the snap store. Write answers to the files in
/root/lab-answers/.
Tasks
- Add the PPA
ppa:git-core/ppa, find which version of git it offers, then remove the PPA without upgrading git. Write the PPA's git version to/root/lab-answers/1. - Download the hello package with
apt-get download hello(in/root), and install the file with dpkg. - Install the hello snap from the edge channel, then go back to stable.
Hints
add-apt-repository ppa:git-core/ppa(it runsapt updatefor you);apt-cache policy gitshows appa.launchpadcontent.netline and the Candidate.add-apt-repository --remove ppa:git-core/ppatakes it out again; afterwards/etc/apt/sources.list.d/has onlyubuntu.sources.dpkg -i hello_*.deb;dpkg -l hellostarts withiiandhelloprintsHello, world!.snap install hello --edge,snap refresh hello --stable;snap list --all helloshows both revisions.