Cannot install php7.2-bcmath on Debian - linux

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?

Related

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

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

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

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

install emacs 24.4 error on mint

I followed this link. But got error, how to fix?
$ sudo apt-get build-dep emacs24
[sudo] password for oracle:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for emacs24
$ cat /etc/apt/sources.list
#deb cdrom:[Linux Mint 17 _Qiana_ - Release amd64 20140530]/ trusty contrib main non-free
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://mirror.nexcess.net/ubuntu trusty main restricted universe multiverse
deb http://mirror.nexcess.net/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
Open the software-sources application, and click "Enable source code repositories"
Then try again.
This is from my recipe for Travis CI:
sudo add-apt-repository -y ppa:cassou/emacs
sudo apt-get update -qq
sudo apt-get install -qq emacs24
Might be useful.

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