PDA

View Full Version : [ubuntu] SW Center Won't Update without Internet



johnfrediani
September 26th, 2011, 09:39 PM
I am loading laptops for a service project in rural Nigeria with Ubuntu 10.04 using a USB drive (some of the laptops don't have CD ROM). I also want to be able to add some packages from the Restricted repository so I downloaded it to the USB drive as well, and then transferred it to the laptop's file system. I can't get Software Center to update and recognize the local repository unless I am connected to the internet even though I have internet disabled as a software source. Once I connect to the internet Softare Center updates I can disconnect and load packages from the local repository just fine. My problem is I want to be able to do this whole process in Africa without internet connectivity. How can I force Software Center to update.

zvacet
September 27th, 2011, 09:51 PM
Put all packages ( and their dependencies) in one folder ( let name it folpack).Transfer that folder in Ubuntu home directory and then run


cd folpack
sudo dpkg -i *deb

johnfrediani
September 28th, 2011, 08:32 AM
I tried that and got the following error mesage:

dpkg: error processing *deb (--install);
can't access achive: no such file or directory

I think I need to explain the structure I have. I am trying to create local copies of the restricted and main archives so I follwed these instructions:


Now, you have to store the files in your local Ubuntu repository in the same order. For example:

In /home/repository/dists/karmic you would have the files: Contents-i386.gz , Release and Release.gpg
And in /home/repository/dists/karmic/main/binary-i386 the files: Packages.bz2 , Packages.gz and Release
Then I used Software Source in the SW Center to add the correct path (/home/john/pack/repository lucid) to my repositories and seemed to get the correct line added to /etc/apt/sources.list. Then I did a apt-get update and it said reading package list ...done
But SW Center still doesn't see the packages in the local repositories

plucky
September 30th, 2011, 12:01 PM
I tried that and got the following error mesage:

dpkg: error processing *deb (--install);
can't access achive: no such file or directory


I think the command should be
sudo dpkg -i *.deb to install all the packages.

Good Luck