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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
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.
Originally Posted by EricTRA
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:
The following packages were automatically installed and are no longer required:
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
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.
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.
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.