LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-06-2016, 10:07 AM   #1
Nai Nai
LQ Newbie
 
Registered: Aug 2016
Posts: 12

Rep: Reputation: Disabled
Smile No success in installing Git on debian-8.5.0-i386


Hello!I have an ERROR when installing git on debian:
#Package git is not available, but it is referred to by another package.This may mean package is missing,has been obsoleted,or is only available from another source.
E:Package git has no installation candidate#

And I tried :sudo apt-get update && sudo apt-get install git-core.

But,the same ERROR still exists.

What can I do now? Can you give me some advices? Thank you for your kindness.

Last edited by Nai Nai; 08-06-2016 at 10:28 AM.
 
Old 08-06-2016, 10:22 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Can you please paste here, preferably within [CODE] tags (you can use the # button in the advanced edit menu to generate these tags), the output from dpkg -l git* ? Thanks.

Edit: And a copy of the contents of /etc/apt/sources.list please.

Last edited by hydrurga; 08-06-2016 at 10:38 AM. Reason: Further info.
 
1 members found this post helpful.
Old 08-06-2016, 10:53 AM   #3
Nai Nai
LQ Newbie
 
Registered: Aug 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
The output from dpkg -l git*:
#ii zliblg:i386 1:1.2.8.dfsg i386 compression library - runtime
un zmailer <none> <none> (no description available)
dpkg-query: no packages found matching git
#

Well,I don't know how to copy the words in the Linux,so I type the last three sentences.

Last edited by Nai Nai; 08-06-2016 at 10:55 AM.
 
Old 08-06-2016, 11:19 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
It looks like you typed dpkg -l git# , not dpkg -l git* .

You can use shift-ctrl-c to copy text from the terminal.

If you could please also paste the contents of /etc/apt/sources.list then that would be useful.

Please enclose all output here in CODE tags as I described above.
 
2 members found this post helpful.
Old 08-07-2016, 01:17 AM   #5
Nai Nai
LQ Newbie
 
Registered: Aug 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
@hydrurga Sorry for my carelessness,and I did as your advice.

I tried shift-ctrl-c to copy text from the terminal,and failed.There was a ^C in the command line.I have the paste setting ON from virtual machine to main engine.So I type.

dpkg -l git*:
#Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name version Architecture Description
+++=================-==========-=======-======================
un gitweb <none> <none> (no description available)#

cat /etc/apt/sources.list:
##jessie-updates,previously known as 'volatile'
#deb http://mirrors.163.com/debian/ jessie-updates main
#deb-src http://mirrors.163.com/debian/ jessie-updates main

#deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official i386 NETINST Binary-1 20160604-14:07]/ jessie main

#Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ jessie/updates main
#Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/ jessie/updates main

#jessie-updates, previously known as 'volatile'
deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official i386 NETINST Binary-1 20160604-14:07]/ jessie main
deb http://mirrors.163.com/debian/ jessie-updates main
deb-src http://mirrors.163.com/debian/ jessie-updates main

#jessie-backports,previously on backports.debian.org
deb http://mirrors.163.com/debian/ jessie-backports main
deb-src http://mirrors.163.com/debian jessie-backports main
#

Thank you for your advice and kindness!

Last edited by Nai Nai; 08-07-2016 at 01:20 AM.
 
Old 08-07-2016, 02:16 AM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You have only one apt source, CDROM. Try adding a mirror to sources.list:

Code:
deb http://ftp.us.debian.org/debian jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian jessie main contrib non-free
then do:
Code:
$ apt-get update
 
1 members found this post helpful.
Old 08-07-2016, 04:38 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Hi NaiNai,

(i) To copy text from the terminal, highlight the text you want in the terminal window, then press the Shift key with one finger. Keeping that key pressed down, place another finger on the Ctrl. Then, still keeping these two keys pressed down, press the c key. That should place the text into your clipboard, available for a subsequent Ctrl-v.

(ii) You're still not getting the hang of the CODE tags here in Linux Questions. If you have any command output or code, you should first paste it here. Then select all that text and click on the # in the toolbar (first click on "Go Advanced" if you don't see the toolbar). This puts CODE tags around the text.

Code:
This is an example.
(iii) AwesomeMachine is correct. Your sources.lst file is a bit of a mess. You need to edit it with a text editor as root. Try AwesomeMachine's suggestion at first. If that doesn't work, copy the file to sources.lst.backup and then replace everything in the sources.lst file with:

Code:
deb http://mirrors.163.com/debian/ jessie main contrib non-free
deb-src http://mirrors.163.com/debian/ jessie main contrib non-free

deb http://mirrors.163.com/debian/ jessie-updates main contrib non-free
deb-src http://mirrors.163.com/debian/ jessie-updates main contrib non-free

deb http://mirrors.163.com/debian/ jessie-backports main contrib non-free
deb-src http://mirrors.163.com/debian jessie-backports main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official i386 NETINST Binary-1 20160604-14:07]/ jessie main
Then run apt-get update as AwesomeMachine suggests, and let us know how it goes.
 
1 members found this post helpful.
Old 08-07-2016, 12:13 PM   #8
Nai Nai
LQ Newbie
 
Registered: Aug 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thumbs up

Have a try:
Code:
This is an example.
Oh~I am so happy that AwesomeMachine's advice is valid,of course I change us to cn. And now sudo apt-get install git is working, there comes no error!

It is so fantastic!Thank you for your depending time on my question,I am so moved! Thank you,hydrurga and AwesomeMachine!

And,I couldn't make sense of highlighting the text? There isn't a mouse,so how can I do it by keyboard?

Regards…

Last edited by Nai Nai; 08-07-2016 at 12:29 PM. Reason: Further info
 
Old 08-07-2016, 05:37 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Excellent!

I'm afraid that I don't know enough to help you to highlight text in the terminal without a mouse, sorry Nai Nai. Perhaps you could start a new thread on the subject? Remember to indicate which terminal emulator you are using e.g. gnome-terminal.
 
Old 08-07-2016, 10:50 PM   #10
Nai Nai
LQ Newbie
 
Registered: Aug 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Good idea!
 
  


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
No success in installing Git on Ubuntu 10.04 acoronajr Linux - Newbie 11 08-06-2016 09:48 AM
installing debian i386 on inspiron 5100 laptop LBurtonWoodclark Linux - Newbie 34 10-03-2013 12:58 AM
LXer: Debian Wheezy Local Git Server With Git Lite Workflow LXer Syndicated Linux News 0 01-20-2013 01:30 PM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
grub issues: dual boot Debian i386 & Debian amd64 ErrorBound Debian 1 03-09-2007 07:41 PM

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

All times are GMT -5. The time now is 09:38 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