Author Topic: apt-get no installation candidate problem - FIXED  (Read 3749 times)

corcorelli

  • Newbie
  • *
  • Posts: 4
    • View Profile
apt-get no installation candidate problem - FIXED
« on: March 08, 2008, 02:29:24 pm »
Don't know if this was happening to anyone else. I kept having this problem when I would apt-get install <package> and go the error either saying <package> was not found or that there was no installation candidate. No amount of tinkering with sources.list seemed to solve this. However, following found in the Ubuntu forums fixed the problem ...

Code: [Select]
cd /etc/apt
sudo mv sources.list sources.list.bak
sudo vi sources.list # then save and quit (:wq) to create a blank file
sudo apt-get update
sudo rm sources.list
sudo cp sources.list.bak sources.list
sudo apt-get update

After this I was able to apt-get to my heart's content.

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: apt-get no installation candidate problem - FIXED
« Reply #1 on: March 08, 2008, 05:39:53 pm »
Don't know if this was happening to anyone else. I kept having this problem when I would apt-get install <package> and go the error either saying <package> was not found or that there was no installation candidate. No amount of tinkering with sources.list seemed to solve this. However, following found in the Ubuntu forums fixed the problem ...

Code: [Select]
cd /etc/apt
sudo mv sources.list sources.list.bak
sudo vi sources.list # then save and quit (:wq) to create a blank file
sudo apt-get update
sudo rm sources.list
sudo cp sources.list.bak sources.list
sudo apt-get update

After this I was able to apt-get to my heart's content.


Just do the following if apt-get install <package> fails;
Code: [Select]
sudo apt-get update <return>
sudo apt-get install 'your_package' <return>

Andrew
« Last Edit: March 08, 2008, 05:41:29 pm by totallymaxed »
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

corcorelli

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: apt-get no installation candidate problem - FIXED
« Reply #2 on: March 10, 2008, 04:50:21 pm »
Hi Andrew

I tried this first thing when I had problems as it should work just as you say. For some reason it didn't. I only got joy once I had updated with a blank sources file and then updated again with my original sources list back in place. I've no idea why this should be, but its the only way I got apt-get back in operation.

Joe