Unable to locate a specific package under Debian GNU / Linux 8.7 - linux

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

Related

Debian Buster: 'E: Unable to locate package'

I have a new install of Debian Buster, I downloaded the ProtonVPN CLI package and went to install and got the errors:
E: Unable to locate package protonvpn-stable-release_1.0.0-1_all.deb
E: Couldn't find any package by glob 'protonvpn-stable-release_1.0.0-1_all.deb'
E: Couldn't find any package by regex 'protonvpn-stable-release_1.0.0-1_all.deb'
my /etc/apt/sources.list file looks like this:
#deb cdrom:[Debian GNU/Linux 10.10.0 _Buster_ - Official amd64 NETINST 20210619-16:11]/ buster main
#deb cdrom:[Debian GNU/Linux 10.10.0 _Buster_ - Official amd64 NETINST 20210619-16:11]/ buster main
deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main
deb http://security.debian.org.debian-security buster/updates main
deb-src http://security.debian.org.debian-security buster/updates main
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster main
I was able to apt-get install wget as well as update and upgrdade. I even tried uncommenting the cdrom lines at the top. I reran apt-get update and apt-get upgrade.
Still, when I try to install the ProtonVPN package I get the above errors.
Note I understand that this is not strictly programming related. If there is a more appropriate stack, please let me know in comments and I will close and post there.
To install manually downloaded Debian package, use dpkg:
dpkg -i protonvpn-stable-release_1.0.0-1_all.deb
If dpkg is complaining about missing dependencies, then use apt-get -f install after running dpkg

Cannot install php7.2-bcmath on Debian

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?

How to append a "non-free" component to /etc/apt/sources.list. Steam install

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

installing linux kernel headers for Debian 2.6.32-48 squeeze 6

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

Debian Squeeze apt-get errors when installing Git?

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.

Resources