Find the repository where a package is

New to Debian (Or Linux in general)? Ask your questions here!

Find the repository where a package is

Postby banderas20 » 2017-08-04 12:45

Hello all.

I'm installing packages on Debian8, and it complains about unmet dependencies (e.g. libsnmp15).

I guess this is because these dependencies aren't available in the repositories I have set in my sources.list. I know I can download the .deb file and install it with dpkg, but I'd like to do it via apt-get or aptitude.
For that to work, I suppose I need to add the repo where that concrete package is located.

The most I have accomplished is the following:

https://packages.debian.org/search?keywords=libsnmp15

But I can't find the corresponding repo. Only the download links.

¿any help?

Thanks!

Gracias!
banderas20
 
Posts: 37
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

Postby Lysander » 2017-08-04 12:56

I think really it would be good if we could see your sources list, that would be a good place to start. It seems that you're trying to install/update a Wheezy package which has no compatibility with Jessie.
Last edited by Lysander on 2017-08-04 13:53, edited 1 time in total.
User avatar
Lysander
 
Posts: 364
Joined: 2017-02-23 10:07
Location: London

Re: Find the repository where a package is

Postby banderas20 » 2017-08-04 13:31

Lysander wrote:I think really it would be good if we could see your sources list, that would be a good place to start. It seems that you're trying to install a Wheezy package which has no compatibility with Jessie.


Sure:
Code: Select all
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

deb http://ftp.debian.org/debian jessie-updates main
deb-src http://ftp.debian.org/debian jessie-updates main

deb http://deb.debian.org/debian jessie/updates main contrib non-free
deb-src http://deb.debian.org/debian jessie/updates main contrib non-free

deb http://deb.debian.org/debian jessie-updates main contrib non-free
deb-src http://deb.debian.org/debian jessie-updates main contrib non-free

deb http://deb.debian.org/debian jessie main contrib non-free
deb-src http://deb.debian.org/debian jessie main contrib non-free

deb http://deb.debian.org/debian/ oldstable main
deb-src http://deb.debian.org/debian/ oldstable main

deb http://deb.debian.org/debian/ oldstable-updates main
deb-src http://deb.debian.org/debian/ oldstable-updates main

deb http://deb.debian.org/debian-security oldstable-updates main
deb-src http://deb.debian.org/debian-security oldstable-updates main

deb http://ftp.de.debian.org/debian/ jessie main
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
banderas20
 
Posts: 37
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

Postby Lysander » 2017-08-04 13:49

Your sources list is a good old strudel of various, well, sources. Some don't belong there and some aren't necessary. Have a read of this:

https://wiki.debian.org/SourcesList

Also

https://wiki.debian.org/DontBreakDebian

After having a read through these [maybe two or three times if you're like me], tidy up the list and post back or, if you feel confident enough, just run

Code: Select all
sudo apt update
User avatar
Lysander
 
Posts: 364
Joined: 2017-02-23 10:07
Location: London

Re: Find the repository where a package is

Postby banderas20 » 2017-08-04 14:23

I have wiped it out and now it's:


Code: Select all
deb http://mirrors.kernel.org/debian/ jessie main contrib non-free
deb-src http://mirrors.kernel.org/debian/ jessie main contrib non-free


deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free


deb http://mirrors.kernel.org/debian/ jessie-updates main contrib non-free
deb-src http://mirrors.kernel.org/debian/ jessie-updates main contrib non-free
deb http://mirrors.kernel.org/debian jessie-proposed-updates main contrib non-free
deb-src http://mirrors.kernel.org/debian jessie-proposed-updates main contrib non-free


deb http://mirrors.kernel.org/debian/ jessie-backports main contrib non-free
deb-src http://mirrors.kernel.org/debian/ jessie-backports main contrib non-free


I will post the results.
banderas20
 
Posts: 37
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

Postby Lysander » 2017-08-04 14:48

Looks much better. You probably don't need those sources starting with

Code: Select all
deb-src


unless you're a developer. They provide access to the source code and files of your applications. I would comment each one out with a # at the start.

Further info

https://unix.stackexchange.com/question ... urces-list

Please post the output of

Code: Select all
sudo apt update


now that your sources.list has been updated.

As a curiosity, and quite an important one I would think, how did your sources.list end up the way it did [i.e. with a Wheezy repo and a mix of Jessie/oldstable sources]?
Last edited by Lysander on 2017-08-04 14:57, edited 1 time in total.
User avatar
Lysander
 
Posts: 364
Joined: 2017-02-23 10:07
Location: London

Re: Find the repository where a package is

Postby kedaha » 2017-08-04 14:57

Rather than search in a browser online, it's even quicker to query the Debian archive from a terminal with the command rmadison. For example:
Code: Select all
$ rmadison --architecture amd64 libsnmp15
libsnmp15  | 5.4.3~dfsg-2.8+deb7u1 | oldoldstable | amd64

Which shows it's unavailable after wheezy.
What you propose is possible following a procedure as detailed, for example, at debian-is-it-possible-safe-to-install-packages-from-an-older-version-of-the-rep. But I don't recommend it.
What's the solution? It might help if you stated what package requiring libsnmp15 it is that you wish to install.
Mate DE & OSSv4.
LaMp, WordPress; ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 2800
Joined: 2008-05-24 12:26

Re: Find the repository where a package is

Postby dasein » 2017-08-04 15:26

Except for the security repos, you also don't need repos for any sort of "updates" anymore. (Jessie is now "oldstable," and isn't going to get an update unless it's specifically security-related.)

Have another look at both of the Wiki pages Lysander pointed you to. Effective repo management requires some time to learn, but it is NOT hard. Mixing repos may seem like an easy thing to do, but it is at best incredibly risky, and can FUBAR your install. (More detail here)
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Find the repository where a package is

Postby Bulkley » 2017-08-04 17:11

After reading his difficulties through a couple of threads I think that the OP, banderas20, has made a big mess and would be better off starting over with a fresh install of Stretch (Stable).
Bulkley
 
Posts: 5365
Joined: 2006-02-11 18:35

Re: Find the repository where a package is

Postby banderas20 » 2017-08-05 05:56

@Lysander

I made a mix in sources.list by trying to find the packages that the system didn't find. I supposed that by adding more and more repos (even old ones), I would end up finding it.
Thanks for your comments!

@kedaha

I had no idea abou command
Code: Select all
rmadison
. Thanks.

The package that requires libsnmp15 is the monitoring tool Zabbix 3.0.

@Bulkley

Yes, I made a mess XD. But as I stated, Stretch didn't event finish it's installation process on a Virtual Machine. I tried several times ani it stuck on different points without no reason.
Anyway, I will try it again...

Thanks everybody!!! :)
banderas20
 
Posts: 37
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

Postby kedaha » 2017-08-05 07:33

You can install Zabbix, which by the way I notice is issued under the GPL :D , as detailed at zabbix.com/documentation/3.2/manual/
Mate DE & OSSv4.
LaMp, WordPress; ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 2800
Joined: 2008-05-24 12:26

Re: Find the repository where a package is

Postby Lysander » 2017-08-05 09:02

banderas20 wrote:@Lysander

I made a mix in sources.list by trying to find the packages that the system didn't find. I supposed that by adding more and more repos (even old ones), I would end up finding it.
Thanks for your comments!


OK, well I take it you know not to do that now, and why it's bad.

What is your output after apt update [try saying that after a few beers]?

banderas20 wrote:I tried several times ani it stuck on different points without no reason.


Hmm, I can't quite believe there is no reason, as such.
User avatar
Lysander
 
Posts: 364
Joined: 2017-02-23 10:07
Location: London

Re: Find the repository where a package is

Postby dasein » 2017-08-05 12:32

banderas20 wrote:I supposed that by adding more and more repos (even old ones), I would end up finding it.

No. By adding more and more repos, what you end up doing is dramatically increasing the chances that you'll eventually break your system beyond repair.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Find the repository where a package is

Postby banderas20 » 2017-08-05 14:21

dasein wrote:
banderas20 wrote:I supposed that by adding more and more repos (even old ones), I would end up finding it.

No. By adding more and more repos, what you end up doing is dramatically increasing the chances that you'll eventually break your system beyond repair.


OK. I'll keep that in mind.

Thanks a lot!
banderas20
 
Posts: 37
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

Postby Bulkley » 2017-08-05 14:31

Study this.

DontBreakDebian

When you understand it, do yourself a favour and do a fresh install.
Bulkley
 
Posts: 5365
Joined: 2006-02-11 18:35

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable