NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
Newbie question about installing deb packagesI have Kubuntu 7.04 installed but without Internet connection. I need to install Firefox (it's a long story) but it's package isn't shown by Adept. I've moved the Firefox deb package from Windows to Kubuntu but can't install it. I am using sudo dpkg -i (firefox deb). This fails because of missing dependencies. I've looked at the Debian discussion of this package and there are many dependencies needed and these, in turn, have their own dependencies. The overall number of dependencies seems to be at least 100, and maybe more. How can I deal with all these depencencies? If I could connect to the Internet, Adept should automatically install them. Sadly, I can't connect. I don't know if this is possible or not, but I have Kubuntu 7.04 installed on a computer with an Ethernet connection. Would it be possible to copy those dependencies from this computer and move them to the one with the problem? Thanks for any help you can give me. |
Try apt-zip
Your best bet would be to see if you have apt-zip available.
Apt-zip consists of two scripts. One generates a list of desired packages and generates a script which will download them. You put that script on some sort of removable storage, then run it on your net connected Kubuntu box. All the necessary packages will be downloaded, and you can transport them back to your original machine.
The second script installs the debs from the removable device.
I hope this hasn't been too confusing. It's really quite useful -- I use it to keep my 'unofficial' work machine (ie my site admin doesn't know it exists!) up to date. Post back if you need more info.
--
A tidy house is the sign of a stolen computer.
Newbie question about
Easy(ish):
1. go to /var/apt/cache/archives -- unless you erased bits, the *.deb packages should be here.
2. check all dependencies using 'dpkg' to show them (since they're both Ubuntu 7.04 you at least don't have to worry about versions)
3. copy all necessary debs and install all with one long 'dpkg -i' command.
If the debs aren't there then life is a bit more difficult. You'd need to go to /var/lib/dpkg/info and check what files were installed for firefox (the .list file) - also grab the install scripts there. 'dpkg' should still be able to give you dependency information as long as firefox was installed from a deb package.
Need help with *deb packages
pinniped,
I found the *deb packages but I don't know how to check their dependencies with dpkg. And if I find out what they are, how do I ensure that the *.deb packages will find these dependencies? And how do I install "all the *deb packages with one long 'dpkg -i' command?"
I'm a newbie and I can't find the answers to these questions in the Manual pages. Those things are very confusing to me.
Thank you for your help.
Like this...
Theoretically all the dependencies should be in the collection of debs. If the app you wanted is in there, it would have automatically dragged in the dependencies it needs, and they'd all be in the directory together.
To install them, cross your fingers and run
dpkg -i *deb
I know, it shouldn't be that easy, but it is! If any dependency problems get thrown up, let us know!
--
A tidy house is the sign of a stolen computer.
Too Good To Be True
cammoblammo,
It didn't work. I got a large amount of output and it's in this pastebin:
http://pastebin.ca/515400
What do you make of this?
Too Good To Be True
Uh ... not a good idea to mindlessly install *.deb files - that's guaranteed to make a big mess.
The quickest (although it's slow) way is to list all the dependencies and figure out exactly what needs to be installed and what's already installed. Unfortunately there is no way around this when your package manager isn't listing firefox. I think to list information (including dependencies) you use:
dpkg --info packagename.deb
Why are you installing firefox if you don't have internet access on that computer?
An alternative method for getting firefox installed goes something like this:
dpkg -i package1.deb
Now you get a long list of complaints about what hasn't been installed. Try to install those using 'apt-get' if they appear in your software list. Otherwise you need to get the package from your other machine again and then:
dpkg -i package1.deb package2.deb
And so on until all dependencies are resolved. In my experience this takes much longer than listing dependencies and manually checking them.
For software in your archive list, it is easier to get dependency information using 'apt-cache' rather than 'dpkg':
apt-cache show somepackage
For example:
apt-cache show lilo
The package name is usually much more convenient than the file name which you must give to 'dpkg', which might be something like 'lilo26-i386-1.rc1.deb' not to mention you actually have to download the entire .deb package to get information via 'dpkg' while 'apt-get' takes the information from the 'package list' instead.
Still Too Good To Be True
pinniped,
I couldn't get these recommendations to work either. The terminal output is at:
http://pastebin.ca/516110
What do you make of this?
Ooops! I forgot to answer your question. The reason I'm trying to install Firefox is that I'm trying to install Linuxant's DriverLoader so that I can connect to the Internet. I'm having trouble with that too, and Linuxant's technical support says that I apparently have everything installed correctly. However, the last step in the installation process is to go to:
http://127.0.0.1:18020/.
Knoqueror can't find this address. Linuxant's technical support thinks there may be a bug in Konqueror so they want me to try a different browser. Hence my desire to install Firefox.
All Roads Lead To A Dead End
Just for fun I tried to install firefox using apt-get. It didn't work either. The terminal output is at:
http://pastebin.ca/516186
I don't understand why it made this error:
E: Couldn't find package firefox_2.0.0.3+1-0ubuntu2_i386.deb
Firefox was in the current directory as is shown in the pastebin.