Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Find the repository where a package is

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
banderas20
Posts: 111
Joined: 2016-11-10 15:30

Find the repository where a package is

#1 Post by banderas20 »

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!

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Find the repository where a package is

#2 Post by Lysander »

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.

banderas20
Posts: 111
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

#3 Post by banderas20 »

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

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Find the repository where a package is

#4 Post by Lysander »

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

banderas20
Posts: 111
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

#5 Post by banderas20 »

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.

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Find the repository where a package is

#6 Post by Lysander »

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.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Find the repository where a package is

#7 Post by kedaha »

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.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Find the repository where a package is

#8 Post by dasein »

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)

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Find the repository where a package is

#9 Post by Bulkley »

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).

banderas20
Posts: 111
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

#10 Post by banderas20 »

@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!!! :)

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Find the repository where a package is

#11 Post by kedaha »

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/
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Find the repository where a package is

#12 Post by Lysander »

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
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Find the repository where a package is

#13 Post by dasein »

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.

banderas20
Posts: 111
Joined: 2016-11-10 15:30

Re: Find the repository where a package is

#14 Post by banderas20 »

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!

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Find the repository where a package is

#15 Post by Bulkley »

Study this.

DontBreakDebian

When you understand it, do yourself a favour and do a fresh install.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Find the repository where a package is

#16 Post by stevepusser »

You do know that the various Zabbix packages are in the standard Jessie repo, though understandably those are getting old, but there are some newer versions in the jessie-backports repository?

https://packages.debian.org/search?keyw ... ection=all
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Find the repository where a package is

#17 Post by stevepusser »

I also baked some of the current release packages into a repo for some versions of Debian and Ubuntu:

https://build.opensuse.org/package/show ... bbix-agent
MX Linux packager and developer

Post Reply