Adding repository for specific package
2016-04-16 12:49:49
2016-04-16 11:27:41
Autor: Sony Santos
categ = soluções, solutions
On a machine with the desired package already installed, type:

# discovering the package (ex.: dropbox)
$ grep "Package: dropbox" /var/lib/apt/lists/*
/var/lib/apt/lists/extra.linuxmint.com_dists_rosa_main_binary-amd64_Packages:Package: dropbox
/var/lib/apt/lists/extra.linuxmint.com_dists_rosa_main_binary-i386_Packages:Package: dropbox

# find the corresponding repository by searching the domain name
$ grep -r /etc/apt/*
/etc/apt/sources.list.d/official-package-repositories.list:deb rosa main #id:linuxmint_extra

On the target machine, type:
# add apt repository
$ sudo add-apt-repository "deb rosa main"

# get the key from the warning
$ sudo apt-get update
W: GPG error: rosa Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3EE67F3D0FF405B2

# add the key
$ sudo apt-key adv --recv-key --keyserver 3EE67F3D0FF405B2

# update
$ sudo apt-get update

# install the package
$ sudo apt-get install dropbox

blog comments powered by Disqus
Para logar, você precisa ter o Javascript habilitado.