1

I'm using Raspbian Stretch with Desktop(v4.14.62-v7) and I can't seem to be able to install packages on my rPi.

For instance, when I type sudo apt-get install autoconf, I get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package autoconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'autoconf' has no installation candidate

I've updated and upgraded but nothing seems to change.

Update

The output of apt policy:

Package files:
100 /var/lib/dpkg/status
 release a=now
500 http://archive.raspberrypi.org/debian stretch/ui armhf Packages
 release o=Raspberry Pi Foundation,a=stable,n=stretch,l=Raspberry Pi Foundation,c=ui,b=armhf
 origin archive.raspberrypi.org
500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
 release o=Raspberry Pi Foundation,a=stable,n=stretch,l=Raspberry Pi Foundation,c=main,b=armhf
 origin archive.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian stretch/rpi armhf Packages
 release o=Raspbian,a=stable,n=stretch,l=Raspbian,c=rpi,b=armhf
 origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian stretch/non-free armhf Packages
 release o=Raspbian,a=stable,n=stretch,l=Raspbian,c=non-free,b=armhf
 origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian stretch/contrib armhf Packages
 release o=Raspbian,a=stable,n=stretch,l=Raspbian,c=contrib,b=armhf
 origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
 release o=Raspbian,a=stable,n=stretch,l=Raspbian,c=main,b=armhf
 origin raspbian.raspberrypi.org
Pinned packages:
3
  • Can you add the output of apt policy to your question? It lists all the apt sources. – Dirk Oct 12 '18 at 23:58
  • @Dirk please see the edit – Can Sürmeli Oct 13 '18 at 8:20
  • Anyways, I did a clean install since I was in the beginnings of bringing up my rPi and even though I'm not sure, it was probably something to do with how I assigned a static IP to my rPi. – Can Sürmeli Oct 13 '18 at 10:20
0

Before even trying to install a new package, it is wise to run apt-get update and apt-get full-upgrade to ensure that your OS has been fully updated.

Once done, then try to install the new package.

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.