installing git on linuxcnc

More
3 years 11 months ago #256006 by Ondrej
Hello,

Iam still learning about linuxcnc. I was trying following this guys steps: TIME 22:56


I want to install git on linuxcnc, it seems interesting for me.

But when I type sudo apt-get install git-core, or sudo apt-get install git nothing happens... I was searching for this for long time on the internet but havent found anything.
sudo apt-get install git-core gives me back :

ondracnc@localhost:~$ sudo apt-get install git-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Some 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:

The following packages have unmet dependencies:
 git : Depends: liberror-perl but it is not installable
       Recommends: patch but it is not going to be installed
E: Unable to correct problems, you have held broken packages. 

any thoughts?
 

Please Log in to join the conversation.

More
3 years 11 months ago #256021 by tommylight
No ideas! :)
Sudo apt install -f
Sudo apt update
Sudo apt install git

Please Log in to join the conversation.

More
3 years 11 months ago #256028 by Ondrej
Replied by Ondrej on topic installing git on linuxcnc
not working from last command :{

ondracnc@localhost:~$ sudo apt install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some 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:

The following packages have unmet dependencies:
 git : Depends: liberror-perl but it is not installable
       Recommends: patch but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

 

Please Log in to join the conversation.

More
3 years 11 months ago #256031 by tommylight
What did this say
Sudo apt install -f
?
You can not say last did not work when the second also did not work.
You have broken packages, means you tried to install something despite a warning it is not OK to install.
Before fixing that, nothing will install.

Please Log in to join the conversation.

More
3 years 11 months ago #256032 by rodw
Replied by rodw on topic installing git on linuxcnc
It sounds like you have installed a different distro of Linux if git won't install
Following random tutorials can lead you off the beaten track as often they are obsolete.
sudo apt install git should work
The instructions to build linuxcnc are documented here
linuxcnc.org/docs/stable/html/code/building-linuxcnc.html  

If it helps to watch another random tutorial,  I did a video here

Please Log in to join the conversation.

More
3 years 11 months ago #256095 by Ondrej
Replied by Ondrej on topic installing git on linuxcnc
ondracnc@localhost:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 178 not upgraded.

I installed linuxcnc from the linuxcnc website via bootable USB.
What does 178 not upgraded mean?

Please Log in to join the conversation.

More
3 years 11 months ago #256100 by JT
Replied by JT on topic installing git on linuxcnc
Do the following
Code:
sudo apt update sudo apt install git git-gui

This will install git and git gui
JT

Please Log in to join the conversation.

More
3 years 11 months ago #256165 by Ondrej
Replied by Ondrej on topic installing git on linuxcnc
ondracnc@localhost:~$ sudo apt update
Hit:1 security.debian.org/debian-security buster/updates InRelease
Hit:2 www.linuxcnc.org buster InRelease     
Reading package lists... Done                      
Building dependency tree       
Reading state information... Done
179 packages can be upgraded. Run 'apt list --upgradable' to see them.
ondracnc@localhost:~$ sudo apt install git git-gui
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some 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:

The following packages have unmet dependencies:
 git : Depends: liberror-perl but it is not installable
       Recommends: patch but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


before that I also tried sudo apt upgrade - it did something but actually nothing - typical sentence was like : Cannot initiate the connection to security.

 

Please Log in to join the conversation.

More
3 years 11 months ago #256170 by tommylight
This appears to be a randomly cropping issue on Linux, luckily i never bumped into this one, so here is one solution from the web:
www.reddit.com/r/linuxquestions/comments...sing_apt_with_linux/
-
Personally, i would not continue with trying to fix this, i would do a new install.
Inability to install basic packages leads me to believe there is a deeper issue, probably errors on the downloaded image.

Please Log in to join the conversation.

Time to create page: 0.242 seconds
Powered by Kunena Forum