LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2020, 05:36 PM   #1
frankschroeriv
LQ Newbie
 
Registered: Jun 2019
Posts: 14

Rep: Reputation: Disabled
sudo apt-get install git NOT WORKING


When I try to execute the following command:

sudo apt-get install git

I end receiving the following message and am unsure as to what to make of it:


Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not going to be installed
Depends: git-man (> 1:2.17.1) but it is not going to be installed
Depends: git-man (< 1:2.17.1-.) but it is not going to be installed
guvcview : Depends: libguvcview-2.0-0 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
Old 06-27-2020, 05:43 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Code:
Try 'apt --fix-broken install' with no packages
Have you tried this?
 
1 members found this post helpful.
Old 06-27-2020, 05:45 PM   #3
frankschroeriv
LQ Newbie
 
Registered: Jun 2019
Posts: 14

Original Poster
Rep: Reputation: Disabled
Yes I have tried this.
 
1 members found this post helpful.
Old 06-27-2020, 06:10 PM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Looks like Lubuntu 18.04. Am I right? Try
Code:
sudo apt install aptitude
aptitude why git

Last edited by shruggy; 06-27-2020 at 06:14 PM.
 
1 members found this post helpful.
Old 06-27-2020, 06:23 PM   #5
frankschroeriv
LQ Newbie
 
Registered: Jun 2019
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Looks like Lubuntu 18.04. Am I right? Try
Code:
sudo apt install aptitude
aptitude why git
This worked, thank you.
 
Old 06-27-2020, 06:27 PM   #6
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
did you update and upgrade before trying to install? perhaps you are dealing with outdated info.
 
Old 06-28-2020, 04:55 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by frankschroeriv View Post
This worked, thank you.
No, this did not work.
All it does is show us why git cannot be installed.

If you managed to install git now, I guess it was the apt -f install command that did it after all.

BTW, you should always run an 'apt update' before installing anything.
Additionally, it is highly recommended to upgrade all packages regularly with 'apt upgrade'.
 
  


Reply

Tags
git, terminal



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo apt update and sudo apt-get update giving error cryptonic472 Linux - Software 7 08-24-2019 08:16 AM
LXer: Gitpod git-bolts git-IDE onto GitHub for in-browser code git-editing LXer Syndicated Linux News 0 09-05-2018 04:50 AM
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration