View Full Version : [ubuntu] Apt-get install from local file system
waperboy
July 18th, 2008, 04:37 PM
Hi,
I have a palmtop computer with Ubuntu 8.04 installed onto windows as the 'install in windows' option. There is no internet connection available - the only way to copy files is via usb-stick.
How do I copy packages via the usb-stick, and then install them with apt-get or dpkg?
It's not possible to run dpkg-scanpackages, it does not seem to be installed.
alenis
July 18th, 2008, 05:41 PM
You can, for example, copy the package you want to install on the Desktop and then double-click it. This action will open the package with gdebi, which will perform the installation
gniltaws
July 18th, 2008, 05:50 PM
If it is a .deb:
sudo dpkg -i /path/to/file.deb Not sure if that helps.
sisco311
July 18th, 2008, 05:57 PM
copy the files to the /var/cache/apt/archives directory
and install the packages with apt-get, aptitude,
Synaptic Package Manager or Add/Remove ...
waperboy
July 19th, 2008, 08:52 AM
Thanks for the replies guys - will try :)
copy the files to the /var/cache/apt/archives directory
and install the packages with apt-get, aptitude,
Synaptic Package Manager or Add/Remove ...
I've tried this already - didn't work, I'm afraid.
Partyboi2
July 19th, 2008, 09:49 AM
You could try using the generate package script (https://help.ubuntu.com/community/Synaptic/PackageDownloadScript) in synaptic (https://help.ubuntu.com/community/Synaptic/PackageDownloadScript)
waperboy
July 21st, 2008, 11:04 AM
The only method that seems to work is the double-click method. A bit tedious to have to follow all dependncies, only to end up with a circular dependency (g++ needs libstdc++ needs g++)...
Any thoughts on how to resolve this?
waperboy
July 31st, 2008, 05:27 PM
Time to bump this up a bit...
mattduckman
July 31st, 2008, 06:21 PM
i have found that if you have all the deb's in one folder, using "sudo dpkg -i *.deb" works pretty well with dependency issues, assuming you have all the necessary packages.
tianyun16
January 10th, 2011, 06:42 AM
Yes .I have the same problem
If you use dpkg command to install deb file .
like this :sudo dpkg -i name.deb
so you will see the Dependence problem
And you fine the depandence file and use dpkg again .
like this: sudo dpkg -i a.deb b.deb c.deb etc.
somekool
January 12th, 2013, 01:23 PM
looks like I found the solution.
install a deb file from the command line and dealing with the dependencies automatically.
sudo gdebi file.deb
tested with steam for linux
sisco311
January 12th, 2013, 01:41 PM
Old thread closed.
http://ompldr.org/tYnpyNw (http://ompldr.org/vYnpyNw)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.