2

I am unable to install certain packages on raspbian. On trying to install ristretto, links2, pqiv, fim packages i get the following error "Unable to detect package"

$ sudo apt-get install ristretto 
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: unable to locate package ristretto

$ sudo apt-get install links2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: unable to locate package links2

$ sudo apt-get install fim
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: unable to locate package fim

On trying to install fbi, i get the following error

enter image description here

Already tried the sudo apt-get update command.

Have been stuck now. These packages should have been in the raspbian repo.

Unable to figure what might have happened to cause this issue!

  • Please show us the relevant errors. The one you are showing is just because there is no package called fbi. Your question seems to be about getting a "Unable to detect package" error when installing ristretto, links2, pqiv, fim. What errors do those produce? We need the exact error message. Also, please don't post images of your terminal, just paste the text directly into your question. See here for help on formatting your posts. – terdon Oct 27 '14 at 16:56
  • @terdon The issue is that there is a package called fbi in the raspbian repo -- or at least, there is for most of us (including me). I told Archit to ask about this here since it requires someone who understands apt well enough to explain why it might do this, e.g. that perhaps something is configured wrong. I don't think these are the kind of errors it spits when there is no inet access, although that might be the problem. We need some expertise and experience applied! – goldilocks Oct 27 '14 at 17:43
  • 1
    @goldilocks I guessed as much but since the error shown was not the error described, I asked for clarifications. I am guessing this is a problem with a missing repository but can't know without seeing the sources.list. – terdon Oct 27 '14 at 18:13
  • 1
    @terdon Okay so we are getting somewhere ;) I notice there is even a man sources.list. For reference, my raspbian /etc/apt/sources.list has one line: deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi. I thought "non-free" might have been my addition, but looking at an unadulterated copy of the last (9-9-14) raspbian image, it's the same there. – goldilocks Oct 27 '14 at 18:19
  • 3
    @Archit ah, that's strange. Please edit your question and add the contents of your sources.list. Also, make sure you run sudo apt-get update after adding the line that goldilocks mentioned but before running the apt-get install commands. – terdon Oct 27 '14 at 20:47
1

Thanks @goldilocks, @terdon : That seemed to have been the error.

As suggested, I took a look at my raspbian /etc/apt/sources.list and it had this one line: deb http://archive.raspberrypi.org/debian/ wheezy main

I replaced it with the line deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi

Ran sudo-apt get updateand all packages now load fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.