running:
ubuntu 14.04 trusty 64bit.
My current version is:
itamar /v/l/a/lists λ git --version
git version 1.9.1
I tried: sudo apt-get update; sudo apt-get install git
and it didn't work.
I tried: sudo apt-get purge git; sudo apt-get install git
and still it installed 1.9.1.
not just that, somehow it uninstalled Atom and Nylas along with git and some other git related packages. I would love to know why it did that also. Below is the output from the purge process.
itamar ~ λ sudo apt-get purge git
[sudo] password for itamar:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
atom* git* git-cola* git-core* gitk* nylas*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 543 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 332614 files and directories currently installed.)
Removing atom (1.8.0) ...
dpkg: warning: while removing atom, directory '/usr/share/atom/resources/app/apm' not empty so not removed
Removing nylas (0.4.49) ...
Purging configuration files for nylas (0.4.49) ...
Removing git-cola (1.9.3-1) ...
Purging configuration files for git-cola (1.9.3-1) ...
Removing gitk (1:1.9.1-1ubuntu0.3) ...
Removing git-core (1:1.9.1-1ubuntu0.3) ...
Removing git (1:1.9.1-1ubuntu0.3) ...
Purging configuration files for git (1:1.9.1-1ubuntu0.3) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
sudo apt-get upgrade git*
– Vineet Aug 25 '16 at 13:04EDIT: generally this is the main issue i think -
– Itamar Gronich Aug 25 '16 at 13:08Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
sudo apt-get update && apt-get upgrade
. Then try to run above command. – Vineet Aug 25 '16 at 13:13