Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add repository on Debian when "deb" command is not available

deb: command not found

Example

$> deb http://ftp.debian.org/debian jessie-backports main
-bash: deb: command not found

Open sources.list with sudo ( if available )

$> nano /etc/apt/sources.list

Paste the deb command in the end of file

deb http://ftp.debian.org/debian jessie-backports main

And them run

$> sudo apt-get update

Sourece

https://ubuntuforums.org/showthread.php?t=889435

deb http://debian.mirror.locaweb.com.br/debian/ jessie main non-free contrib
deb http://debian.mirror.locaweb.com.br/debian/ jessie-updates main contrib non-free
deb http://debian.mirror.locaweb.com.br/debian-security/ jessie/updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main
@Mihoid

This comment has been minimized.

Copy link

Mihoid commented Oct 3, 2017

thanks!

@QuietWind

This comment has been minimized.

Copy link

QuietWind commented Jan 4, 2018

thanks! very nice.

@ceroloy

This comment has been minimized.

Copy link

ceroloy commented Jan 26, 2018

Thank you!

@Andrewluck248

This comment has been minimized.

Copy link

Andrewluck248 commented Mar 6, 2018

root@kali:~# /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied

is this couse im in SU terminal ?

@jawardell

This comment has been minimized.

Copy link

jawardell commented May 9, 2018

This doesn't work for docker run -ti ubuntu. I get the following error message after adding deb http://ftp.debian.org/debian jessie-backports main to my sources.list file and issuing apt-get update as root:

W: GPG error: http://ftp.debian.org/debian jessie-backports InRelease: The following signatures couldn't be verified
because the public key is not available: NO_PUBKEY alpha_numeric_string_here NO_PUBKEY  alpha_numeric_string_here
W: The repository http://ftp.debian.org/debian jessie-backports InRelease is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. 
N: See apt-secure<8> manpage for repository creation and user configuration details.
@VinACE

This comment has been minimized.

Copy link

VinACE commented Jun 9, 2018

Err:12 http://ftp.debian.org/debian jessie-backports InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
Reading package lists... Done
W: GPG error: http://ftp.debian.org/debian jessie-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
E: The repository 'http://ftp.debian.org/debian jessie-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

@raldone01

This comment has been minimized.

Copy link

raldone01 commented Nov 19, 2018

Please correct Sourece to Source!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.