I ran the following commands on linux mint 12 lisa:
1). sudo rm -rf /var/lib/apt/lists/* -vf 2). sudo apt-get update 3). sudo apt-get install git
I am getting the following error on running 3. That is, installing git:
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package git
My /etc/apt/sources.list file contains the following content:
deb http://packages.linuxmint.com/ lisa main upstream import deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse deb http://archive.canonical.com/ubuntu/ oneiric partner deb http://packages.medibuntu.org/ oneiric free non-free # deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps # deb http://archive.getdeb.net/ubuntu oneiric-getdeb games
sudo apt-get upgrade shows the following:
Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Advertisement
Answer
You need to install aptitude first.
sudo apt-get install aptitude
then install git using the command
sudo aptitude install git