[SOLVED] No success in installing Git on debian-8.5.0-i386
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
@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)#
#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
(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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.