Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Like evo2 pointed out, you'll probably need the multiverse repository in your sources.list so that apt-get can go through that one to find and download the dependencies it's missing to complete the install of the java part. Can you run the following command and post the output here:
What's up? Got everything running again? Or are you still facing problems with some packages? Give us an update on your status and let us know if we can help any further.
Thank you so much for the tutorials on how to save and re-implement software installations in Ubuntu (and most other flavors of Linux). I most recently got a new (to me, anyway) Inspiron 1520 laptop to play with, having a duo-core CPU, 2GB RAM and a 140GB HDD. I loaded Windows 7 and Ubuntu 9.10 Netbook, but had forgotten to make the list as you'd suggested, save it to a USB stick and use it for future installations. Well, I decided to try a tri-boot by installing Xubuntu, and that was a mistake. To make a long story short, X buggered the HDD partitioning royally, and I ended up reloaded both Win 7 and U last night. I made the original_installs.txt file right after I'd finished installing U Netbook, prior to letting the Update Manager do it's preemptive 240 updates to a new system. I've got this thread saved to my Favorites, I might add.
BTW, if you're thinking about getting and PAYING for Windows 7, don't. It is no more than Bill Gates' attempt to cash in on the Linux FREE intefaces. Even had the audacity to use a startup of flickering lights like Xubuntu uses... And, he put the taskbar on bottom, just opposite of Linux.
I used the sage advice prior to create a sh file that will recreate my environment in Ubuntu 9.10, with all of the additional plugins and drivers needed. Also, to use this when setting up other laptops with similar characteristics. I only had 267 entries in the diffs file.
Quote:
Originally Posted by EricTRA
Code:
sed -i 's/ install//g' playfile.txt
would do the trick.
Ok, no problem. It's great that you're putting in the time to try and understand, and most importantly, learn from it. That's how we all got started
When you are processing the list of packages (p2install.txt), apt-get will try to install every package one by one. If a package is already installed, the apt-get will tell you that and the script will move on to the next line.
The list p2install.pkg is only a list of the packages you got as a result from the difference between packages.txt (gotten from listing /usr/share/doc) and what you have currently installed (using the same command on /usr/share/doc).
As stated before, the p2install.pkg is by no means whatsoever a guaranteed complete list of what was installed on your previous system.
The originalselected.txt file on the other hand is generated from the package manager and NOT from a listing of the documentation directory. Hence it's more guaranteed to contain all of the packages installed, those that have documentation in /usr/share/doc and those that don't.
You cannot compare the two and rely on the result since they are different by nature. Every documentation listed is related to a package but every package installed doesn't necessarily have a documentation or have one in the one location you listed. It's like comparing two different types of apples, both are apples but they might differ in taste, shape, color, and so on. If you want to do a comparison at this level you'll have to make sure that you are comparing the result from an identical source, which in this case it is not.
Thanks again for your ongoing tutorials. I just used your examples to take snapshots of my U-9.10-Netbook installations, but I made one BIG change to the nomenclature. Where you used original and packages, I put the dates they were created in the filename. So, without having to 'wc' or 'cat' the files, that should let whomever know the choreography. You can use 'diff' to compare a list of the INSTALLED (sudo dpkg) outputs from different dates and make it a "phased" installation. I did this after getting my DVD to finally playback, and then again today after installing Audacity and the last plugins needed to make the DVD play EVERYTHING! Now, rebuilding after a fresh install will be MUCH quicker, thank you both very much!
Now, get this: I've been having difficulties with the menus in 9.10-Netbook, and it was suggested that I try 9.10-Desktop on the laptop. I just finished reinstalling Ubuntu, but with the Desktop, and before running the Update Manager, I built a little script (using your precept and example) to grab the initial lists of what is installed. Interesting, the Docs file has 2 more lines than the Selected file.
The Desktop GUI is different in that the things normally found in the sidebar are on top, and there is now no problem with seeing all of the entries in the SYSTEM element. It also seems to be running just fine on this laptop, but it is an Inspiron 1520, 1.5GHz duo-core, 2GB RAM and 140GB HDD. This rivals quite a few desktops.
Now that I have the snapshot of the base system, it is time to do a bit of updating...
The script is simple, just combines 2 of the major commands that are in this thread:
I've used most of your sage advice for collecting data, but invoking some of it on the rebound aborts when a response is required? What can be done with the apt-get script to allow interactions, or can the list of INSTALL Selected be used as input to some other utility?
I get about halfway thru my Phase2 installs before it aborts, and my Phase3 aborts with an error about missing plugins. I've tried modifying the apt-get line to include an 'echo $line;' in the string, but that causes the routine to go into loop on the libgetc entries that renew the Ubuntu headers.
The area that my Phase2 install has trouble is:
Quote:
The following packages were automatically installed and are no longer required:
linux-headers-2.6.31-14 linux-headers-2.6.31-14-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libfaac0 libmp4v2-0
The following NEW packages will be installed:
faac libfaac0 libmp4v2-0
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 405kB of archives.
After this operation, 1,188kB of additional disk space will be used.
Do you want to continue [Y/n]? Abort.
sudo is not needed for "dpkg --get-selections". Also, using the directory names in /usr/share/doc is just a hack that can be used when the dpkg database is hosed: eg /var was wiped.
So, if all of the INSTALL entries are removed from the *Selected files, it should complete installing all of those packages? Removal is no big deal, and I can put that into a new file to use for recovery.
EDIT:
I see what you are talking about, the SUDO is not needed for the 'get' but it cuts down access problems. I think that I may have gaffed and used the output with the INSTALL in the line for Phase2.
Yeh, from what I can gather from both the DOC and SELECTED files from Phase1 and Phase2, using DIFF to gauge the progress, results from the echo and the get-selected show:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.