Tuesday, August 9, 2016

apt - How to remove all packages installed which are not in the repositories and install the current repositories' equivalents

I mistakenly switched my repositories to Zesty's and upgraded all the packages. Now that I reverted to Yakkety, is there a way I can make apt uninstall all Zesty's packages and reinstall Yakkety's equivalents?



Output of lsblk:



NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 115M 0 loop
/snap/vlc/4 loop1 7:1 0 78,3M 0 loop /snap/core/1441

sda 8:0 0 1,4T 0 disk
├─sda1 8:1 0 500M 0 part
├─sda2 8:2 0 683,6G 0 part /mnt/Windows
├─sda3 8:3 0 1K 0 part
├─sda5 8:5 0 643,9G 0 part /
├─sda6 8:6 0 7,9G 0 part [SWAP]
└─sda7 8:7 0 61,5G 0 part
sr0 11:0 1 1024M 0 rom



Output of uname -a:



Linux tommy-S551LB 4.10.6 #1 SMP Tue Mar 28 20:29:54 CEST 2017 x86_64
x86_64 x86_64 GNU/Linux


Output of lsb_release -a:



No LSB modules are available.
Distributor ID: Ubuntu

Description: Ubuntu Zesty Zapus (development branch)
Release: 17.04
Codename: zesty

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...