
On 02/01/16 19:57, Craig Sanders via luv-main wrote:
On Sat, Jan 02, 2016 at 07:35:46PM +1100, David Zuccaro wrote:
No the question is which packages will give me networking back?
apt says network-manager has no installation candidate. You need to find out which packages you removed.
Try:
grep remove /var/log/dpkg.log
Or if you know the packages were removed on a certain date (e.g. 2015-12-30), you can get a list of just the package names by printing only the 4th field of the log file.
awk '/^2015-12-30 ..:..:.. remove / {print $4}' /var/log/dpkg.log | sed -e 's/:all//'
(the sed command strips ':all' from package names. apt-get copes with architecture specification like :amd64 or :i386 but barfs on :all)
That list can be used directly with apt-get with:
apt-get -d -u install $(awk '/^2015-12-30 ..:..:.. remove / {print $4}' /var/log/dpkg.log | sed -e 's/:all//')
Run again without the '-d' (download-only) option when you are sure it's only going to install the stuff you want.
Optionally add '| grep -Ev "pkg1|pkg2|pkg3..."' after the sed but before the close-parenthesis if you want to exclude particular packages from being re-installed.
NOTE: if dpkg.log has been rotated since you removed the packages, try dpkg.log.1 or dpkg.log.2.gz etc.
craig
Thanks Craig, None of the packages seem to be on the CD: https://www.dropbox.com/home/Camera%20Uploads?preview=2016-01-02+20.25.13.jp... I think I might have to back up and do a fresh install... Regards, David