Ubuntu – Cannot use software-center to install packages from local repository without internet


I have a Local repository as instructed in this tutorial . It is a trusted repository, so no "Authentication errors" are there. I've tested it with synaptic and apt-get .

I was being able to use this with Lucid, Natty, and Oneiric.

But I don't want to install synaptic every time, I install Ubuntu (since synaptic is removed from default Live CD since Oneiric).

The problem is : "Ubuntu Software Center" does not install packages from local repository. The install button is greyed out. It installs packages only when I connect to the Internet and for some unknown reason it re-downloads (sometimes) the packages which are also in my Local repository.

My question is: How can I use Software-Center to install packages from local repository without connecting to the internet?


I have placed my local apt line to the top of the sources.list file and installing from apt-get does not require connecting to the internet

Here is the output of command from apt-get :

anwar@Ubuntu:~$ sudo apt-get install nautilus-wipe --print-uris 
[sudo] password for anwar: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 131 not upgraded.
Need to get 0 B/30.7 kB of archives.
After this operation, 150 kB of additional disk space will be used.
'file:/media/Main/Linux-Software/Ubuntu/Precise/./precise-debs/nautilus-wipe_0.1.1-2_i386.deb' nautilus-wipe_0.1.1-2_i386.deb 30730 MD5Sum:7d497b8dfcefe1c0b51a45f3b0466994

It is okay with the local copy.

Ubuntu Software Center is not happy with the local copy,It always tries to connect to the internet first

enter image description here

And when I am not connected to Internet, The install button is grayed out.

Why is this happening?

Best Answer

I have filed a bug report in launchpad. This is the URL of the filed bug.

I was told that, the bug was already submitted, was a duplicate of this bug.

The response was

Hi Mohammed, and thank you for your report. So, as I understand it, the issue is that you want to be able to install packages using Software Center while you are not connected to the Internet, is that correct? In other words, your Internet connection is disabled at the time you try the install, and the "Install" button is disabled. If this is the case, then this bug is a duplicate of bug 911706. I will mark it as such, but please feel free to comment here if you feel this is not a duplicate of that bug. Otherwise, please add any additional info to bug 911706, and follow that one for the status of a fix.

Many thanks!

The bug status was changed to "Confirmed" on the day 06-10-2012.

So, there is indeed no solution until this bug is fixed.

I think, this answers the question.