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 08-18-2017, 09:31 AM   #1
danielvolk
LQ Newbie
 
Registered: Aug 2017
Posts: 1

Rep: Reputation: Disabled
Question MobaXterm not Installing git


I'm using MobaXterm on a Windows machine and I'm trying to install the git package. I've tried clicking on the "Packages" icon and manually installing git but it exits with the error below.
Alternatively, I've tried variations of apt-get install git or apt-cyg install git and both fail with the same error.
I've also tried searching the folder name through Google followed by manually downloading and unzipping it in MobaXterm's bin directory where it looks like all other packages are located.

I'm starting to understand some syntax, but I never understand where commands, packages, software, etc. need to be placed in order to call upon them.

Thanks!

➤ apt-get install git
Found package git

Installing git
Downloading git-2.8.3-1.tar.xz...
Downloading /home/mobaxterm/.aptcyg/http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin/release/git/git-2.8.3-1.tar.xz using Windows internet settings
sha512sum: can't open 'git-2.8.3-1.tar.xz': No such file or directory
/bin/apt-cyg: line 476: test: ed5bc44abdea353cb2c4c172b6daf3111390e5a1f2cef983b5d436c717b39412e77b9346c20a4a9d8edd6937ced5afb04e64 ca6f5c15494c93b68614998f1fc6: unary operator expected
md5sum: can't open 'git-2.8.3-1.tar.xz': No such file or directory
/bin/apt-cyg: line 479: test: ed5bc44abdea353cb2c4c172b6daf3111390e5a1f2cef983b5d436c717b39412e77b9346c20a4a9d8edd6937ced5afb04e64 ca6f5c15494c93b68614998f1fc6: unary operator expected
Checksum did not match, exiting
 
Old 08-18-2017, 03:23 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,997

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Hello. Welcome to LQ.

Let me try to get to the main parts of this.

OK, you have telneted or ssh'ed to some linux computer from windows using mobaxterm correct? On that terminal you now have command line access. Are you using the mobaxterminal gui to try to download this package? If so then don't.

You access this remote and then you are under some user hopefully not root. You should have been earlier set to allow this remote user a way to become root under sudo. While connected to the remote in a mobaxterm window you issue the command

sudo apt-get install git

This assumes you have first updated by
sudo apt-get update
Maybe then
sudo apt-get upgrade

Your system may not use apt-get... or apt
 
Old 08-18-2017, 04:03 PM   #3
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
IT's an issue with the mobaxterm package manager. It's out of date with the latest build, thus the file it's looking for doesn't even exist. It's not an issue with YOUR mobaxterm, it's an issue with MobaXTerm in general.

Last edited by Timothy Miller; 08-18-2017 at 05:30 PM.
 
Old 05-04-2018, 03:12 PM   #4
cpqlinux
LQ Newbie
 
Registered: May 2018
Posts: 2

Rep: Reputation: Disabled
Smile MobaXterm apt-cyg/apt-get successful install of git

MobaXterm's apt-cyg/apt-get/"Packages" seems to be unaware that setup.ini is now located one level deeper in x86/setup.ini and x86_64/setup.ini. You can tell that the setup.ini is old because it is trying to retrieve the old version of git-2.8.3-1 (current is git-2.17.0-1). Running MobaXterm's "Packages" icon also gives you a few more details for this error.

The simple (and non-invasive) fix is to replace setup.ini with a newer version. Based on 32-bit (uname -m) and the URL in your error message, you can retrieve your latest setup.ini from here:

http://mirrors.kernel.org/sourceware.../x86/setup.ini

The setup.ini file to overwrite is located in this directory:

/home/mobaxterm/.aptcyg/http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin

That fixed things for me and I was able to install the current version of git.

Also, regarding cygports (so you don't go down a rabbit hole), looks like the cygports repository has been "removed" and good packages folded into the main cygwin repository, see "Project Update": https://sourceware.org/cygwinports/

MobaXterm Professional Edition v10.5 Build 3582
 
1 members found this post helpful.
  


Reply



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
installing GIT on My pc JerseyGiant Linux - Newbie 1 06-13-2016 09:37 AM
MobaXterm connect to host port 22: Connection timed out redhatwannabe General 0 11-07-2012 07:41 PM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
[SOLVED] installing git adetheheat Linux - Software 3 03-02-2011 04:44 AM
[SOLVED] installing git on centos 5.4 anand.arumug Linux - Software 1 03-10-2010 11:06 PM

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

All times are GMT -5. The time now is 06:51 AM.

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