I have come across several installation instructions that include the command deb
. But it appears that this command is not available on my installation.
Where can I get this command? Is there a work-around?
I have come across several installation instructions that include the command deb
. But it appears that this command is not available on my installation.
Where can I get this command? Is there a work-around?
deb
is not a command. It is used in/etc/apt/sources.list
file to indicate a Debian software repository.From Ubuntu Manpage - sources.list:
So, if I have
deb http://archive.ubuntu.com/ubuntu/ quantal main restricted
in thesources.list
file - it says: I have a Debian archive which is based onhttp://archive.ubuntu.com/ubuntu/
, the distribution isquantal
and the components aremain
andrestricted
.Like the answer by @Eric Carvalho
deb
is not command line If you have deb then url like this:Edit
Like commit of @muru, you need to create new file with the extension
.list
into/etc/apt/source.list.d/
folder:Example: I want to download Oracle virtualbox, create new file :
Then copy and paste the line of deb into this file
deb
is not a unix command. If you have a line like the following (source for docker):it is a line that must be available in your ubuntu
sources.list
so thatapt-get
can find future packages from this new source.However, it's not a good practice to edit the
/etc/apt/sources.list
file directly. Instead add thedeb
line as an entry to a new.list
file inside the/etc/apt/sources.list.d/
directory. We will create adocker.list
file like this:Once done, remember to perform a
sudo apt-get update
and you should now be able to find new packages from this source easily.On Ubuntu, you don't have to manually edit the
source.list
to add the repository. Instead, you can useadd-apt-repository
, as you would do for a PPA.For example, to add the LLVM repository, you can call:
As you can see, we must pass the
deb
line as a single argument to the command.Deb isn't actually a command (I thought so too, at first) -- Assuming you are trying to download/install a deb, do this (for example):
wget http://whatever.com/whatever.deb
then
dpkg -i whatever.deb
then run the commands:
This is not the CLI command.
This is information about some Debian package repository (used also by Ubuntu).
If you want to use this repository:
Open the file
/etc/apt/sources.list
with administrator privileges.Add to this file a line with information about the repository starting with
deb ...
Save the file.
Run this command:
apt-get update
Now you will be able to use this repository.