Fix APT with `apt-get -f install` without internet access?
I am maintaining computers at a site with no internet.
To install new applications, I used Synaptic > File > Generate Script, which gave me a list of dependencies; I downloaded those, put them on a drive, took them to the site. I tried to install the packages with just a Code:
dpkg -i *deb It says I need to do a Code:
apt-get -f install So I do Code:
apt-get -f purge I'm assuming there's some way that I'm just not seeing to clear out whatever packages are clogging up this system without actually having access to the internet. I'm just not getting what it is. The man page suggests a few things, but so far everything seems to want to have internet access, even though all I'm trying to do is remove packages. What am I overlooking? |
Hi Klaatu,
apt assumes network contectivity, dpkg does not. So, have you tried using dpkg to remove problematic packages? Eg Code:
dpkg --purge some-package Code:
dpkg --configure --pending Evo2. |
OK, that makes sense. Thanks, I'll give it a shot this weekend and report back / mark this thread solved as applicable.
|
Instead of --pending, you can also use -a (--all):
Code:
dpkg --configure -a Use dpkg-reconfigure to (re)configure "already configured" packages. Code:
dpkg-reconfigure -a |
I just tether my cell phone to get an internet connection when in a pinch.
|
Yabbut, if the equipment has no wifi capability, tethering can be rather difficult. Worse if it has no ethernet ports.
|
Quote:
It seems to me that dpkg should not really be concerned with deps if I am installing a binary .deb package. Copy the files to the system, warn me that deps have not been satisfied, and let me install the separately. To put the APT database into an unusable state just because a few packages are missing dependencies (which I intended to manually satisfy) seems like a bad policy to me. Is there a better way to do offline manual installs of deb packages, aside from dpkg? Or am I just trying to treat this too much like Slackware, and need to just get into the rhythm of how Debian does things? It's ok if that is the case, but I guess my ideal solution would be something that just lets me install deb packages (which I have pre-downloaded, deps inclusive) without regard to deps, trusting that I know enough to install the deps. tldr: Is there a way to install binary packages on Debian out of the sequence defined by their hierarchy of dependencies? |
Quote:
Code:
dhclient eth0 |
Quote:
|
Read this disccusion, usefull suggestions were made:
http://stackoverflow.com/questions/1...net-connection There are more of such discussions running in the out side world. https://www.google.nl/webhp?sourceid...ernet%20access |
Quote:
Thanks everyone for the suggestions. Marking this thread as solved. |
Hi Klaatu,
Quote:
Quote:
Code:
dpkg -i *.deb Quote:
Quote:
Quote:
HTH, Evo2. |
Quote:
Once you have that all sorted you just place it in the sources.list and you're done. |
Hi,
Quote:
Cheers, Evo2. |
If the machines are off line, have they been upgraded at all?
If the machines haven't been upgraded are you putting new packages or are they from the old repo's |
All times are GMT -5. The time now is 09:06 PM. |