I'm new to Linux/Debian (squeeze). I'm trying to do an apt-get to install git and receive this error message.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package git-core is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'git-core' has no installation candidate
i tried editing my sources.list to the following
# deb cdrom:[Debian GNU/Linux 6.0.5 Squeeze - Official i386 DVD Binary-1 20120512-13:45]/ > squeeze contrib main
# deb cdrom:[Debian GNU/Linux 6.0.5 Squeeze - Official i386 DVD Binary-1 20120512-13:45]/ squeeze contrib main
deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib
deb http://ftp.us.debian.org/debian/ squeeze/updates main contrib
deb-src http://ftp.us.debian.org/debian/ squeeze/updates main contrib
deb http://http.us.debian.org/debian squeeze/updates main contrib
deb-src http://http.us.debian.org/debian squeeze/updates main contrib
# squeeze-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://ftp.debian.org/debian/ squeeze-updates main contrib
deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib
as i said i'm very new to this so i don't know what needs to be in the sources.list file. I can't actually install anything right now. i tried installing php as well and got the same error. please help :(
The git-core package is obsolete, try installing git.
EDIT
Furthermore you only have squeeze updates repositories in your sources.list, add at least one regular squeeze repository to get access to all packages, not just updated ones:
deb http://ftp.debian.org/debian/ squeeze main contrib non-free
Afterwards run apt-get update to update your local package index.
Related
I do everything according to the instructions: PHP | "The requested PHP extension bcmath is missing from your system."
apt-get update
apt-get install php7.2-bcmath
I get:
Reading package lists... Done Building dependency tree Reading state
information... Done E: Unable to locate package php7.2-bcmath E:
Couldn't find any package by regex 'php7.2-bcmath'
Why the system cannot find this module?
Use deb.sury.org
Just add https://packages.sury.org/php/ to Your apt/sources.list, and voila. There is php7.2-bcmath and a lot of other php stuff
It doesn't work for me.
I added the code to the file (8th line)
deb http://mirror.hetzner.de/debian/packages jessie main contrib non-free
deb http://http.debian.net/debian jessie main contrib non-free
deb http://http.debian.net/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
# deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb http://http.us.debian.org/debian/ jessie main
# deb http://ftp.debian.org/debian stable main contrib
deb https://packages.sury.org/php/
and it shows the error:
E: Malformed line 8 in source list /etc/apt/sources.list (dist) E: The
list of sources could not be read.
So I added at the end last line: "jessie main"
deb http://mirror.hetzner.de/debian/packages jessie main contrib non-free
deb http://http.debian.net/debian jessie main contrib non-free
deb http://http.debian.net/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
# deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb http://http.us.debian.org/debian/ jessie main
# deb http://ftp.debian.org/debian stable main contrib
deb https://packages.sury.org/php/ jessie main
Now I have the same as before:
Reading package lists... Done Building dependency tree Reading state
information... Done E: Unable to locate package php7.2-bcmath E:
Couldn't find any package by regex 'php7.2-bcmath'
Why am I still unable to install this package?
I have bought a chromebook and it has come with the os Debian Linux system of which I have no idea how to use or work. I am trying to install Steam on my computer and am following this tutorial: https://wiki.debian.org/Steam#A64-bit_systems_.28amd64.29
I have fallen upon the first step as I am trying to create a new list or even append this non-free component to the current sources.list. However I am confused as to how to append it as running the command deb http://deb.debian.org/debian/ buster main contrib non-free I am told deb is not a command. This would be fine if I then knew how to create a list and add it.
Would someone be able to help me as to how to add this non-free component to the source.list file. My understanding is very basic.
Thanks
Edit your /etc/apt/sources.list :
sudo apt edit-sources
or:
sudo nano /etc/apt/sources.list
as follows:
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
Ctrl + O , Enter , Ctrl + X to save
Then run:
sudo apt update
I want to install Neovim but I get the following error:
~ ยป sudo apt-get install neovim
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package neovim
My sources.list:
deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main
deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://ftp.debian.org/debian jessie main non-free contrib
deb-src http://ftp.debian.org/debian jessie main non-free contrib
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian jessie-updates main contrib non-free
Uname:
Linux myserver 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux
Lsb_Release:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8.7
Codename: jessie
Can anyone help me?
well it's unable to locate the package cause there is no neovim in Debian stable as far I know. There is one in the testing repository.
Neovim is available in Testing (Stretch) so it should be available to Stable (Jessie) by using Backports.
General idea here: https://backports.debian.org/
Method here: https://backports.debian.org/Instructions/
For jessie add this line
deb http://ftp.debian.org/debian jessie-backports main
to your sources.list (or add a new file with the ".list" extension to /etc/apt/sources.list.d/) You can also find a list of other mirrors at https://www.debian.org/mirror/list
Run apt-get update
Then
apt-get -t jessie-backports install neovim
I cannot install the kernel header package for debian. Its not found with apt-get install, even 'apt-cache search linux-headers' yields no results for my version.
My sources.list:
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free
Any help would be appreciated
I'm pretty new in Debian world. I just got a private virtual server to host my websites, and i'm currently learning how to correctly secure a webserver.
If I understand well, when doing apt-get update && apt-get upgrade, apt will retrieve updates of my installed packages in the repositories listed in /etc/apt/sources.list. My sources.list looks like this :
deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main
deb http://http.debian.net/debian wheezy-updates main
deb-src http://http.debian.net/debian wheezy-updates main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
And here come my questions :)
Can I remove the lines starting with "deb-src"? Am I correct if I say I don't need packages sources unless I want to modify them myself (which, obviously, i'm just not able to do)?
What's the point of having several repositories (http://http.debian.net/debian and http://security.debian.org/)? I keep reading documentations about apt, but I don't find any explanations. Are there any packages that are in security.debian.org that are not in http.debian.net/debian? And vice versa?
after the repository URI comes the component. I understand the differences between wheezy / stable / testing etc. But what's the differences between wheezy and wheezy/updates?
Thanks!
deb-src is for source packages. You would use those for cross compiling and other neat dev stuff.
The security repo is where the security related updates are stored.
Lastly the updates repo is for updates released after the distribution is live, I believe.
Take a look at https://wiki.debian.org/SourcesList
And this SE question https://unix.stackexchange.com/questions/4255/why-is-there-a-separate-package-repository-for-debian-security-updates