LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-02-2010, 12:31 PM   #106
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297

Hi elishac,

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:
Code:
cat /etc/apt/sources.list
Kind regards,

Eric
 
Old 03-05-2010, 12:17 AM   #107
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi elishac,

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.

Kind regards,

Eric
 
Old 03-24-2010, 04:28 PM   #108
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
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.

Last edited by theiron; 03-24-2010 at 04:31 PM.
 
Old 03-26-2010, 07:42 PM   #109
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
very useful, indeed!

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 View Post
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.

I hope that makes it a bit clearer?

Kind regards,

Eric
 
Old 03-27-2010, 06:35 PM   #110
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
EricTRA and elishac:

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!
 
Old 03-28-2010, 09:32 AM   #111
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello theiron,

That's indeed an advantage. Great it's working like it should. And thanks for the positive reactions.

Kind regards,

Eric
 
Old 03-28-2010, 04:09 PM   #112
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
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:

Quote:
ib12s@ib12s-laptop:~$ cat DesktopInitial.sh
#!/bin/sh

echo /usr/share/doc/* | tr ' ' '\n' | cut -f5 -d '/' > desktop_base-doc.txt

sudo dpkg --get-selections >DesktopBaseSelected.txt
 
Old 03-28-2010, 05:34 PM   #113
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
Can we reinstall from the Selected file?

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.
 
Old 03-28-2010, 05:36 PM   #114
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

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.

Evo2.
 
Old 03-28-2010, 06:25 PM   #115
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
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.

Last edited by theiron; 03-28-2010 at 06:58 PM.
 
Old 03-28-2010, 07:23 PM   #116
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
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:

Quote:
7d6
< alsa-oss install
59d57
< cabextract install
109d106
< dmraid install
421d417
< libdmraid1.0.0.rc15
This is the same for the Echo output, and they are both products of the following, the contents of the phase2installs.txt:
Quote:
alsa-oss
cabextract
dmraid
faac
faad
flashplugin-installer
flashplugin-nonfree
freepats
gparted
gsfonts-x11
gstreamer0.10-ffmpeg
gstreamer0.10-pitfdll
gstreamer0.10-plugins-
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-ugly-multiverse
java-common
kpartx
liba52-0.7.4
libamrnb3
libamrwb3
libass3
libaudio2
libavcodec52
libavformat52
libavutil49
libcdaudio1
libcddb2
libcelt0
libdc1394-22
libdca0
libdirac0c2a
libdmraid1.0.0.rc15
libdns53
libdvbpsi5
libdvdnav4
libdvdread4
libebml0
libenca0
libfaac0
libfaad0
libffado1
libfftw3-3
libfreebob0
libgsm1
libid3tag0
libiptcdata0
libiso9660-5
libjack0
libkate1
liblua5.1-0
libmad0
libmatroska0
libmimic0
libmjpegtools-1.9
libmms0
libmng1
libmodplug0c2
libmp3lame0
libmp4v2-0
libmpcdec3
libmpeg2-4
libofa0
libopenspc0
libpostproc51
libqt4-dbus
libqt4-network
libqt4-xml
libqtcore4
libqtgui4
libquicktime1
libschroedinger-1.0-0
libsdl1.2debian
libsdl1.2debian-alsa
libsdl-image1.2
libsidplay1
libsoundtouch1c2
libswscale0
libtar
libtwolame0
libupnp3
libvcdinfo0
libvlc2
libvlccore2
libwildmidi0
libx264-67
libxcb-keysyms1
libxml++2.6-2
libxvidcore4
linux-headers-2.6.31-20
linux-headers-2.6.31-20-generic
linux-image-2.6.31-20-generic
medibuntu-keyring
nautilus-dropbox
non-free-codecs
odbcinst1debian1
skype
sun-java6-bin
sun-java6-fonts
sun-java6-jre
sun-java6-plugin
totem-xine
ttf-liberation
ttf-mscorefonts-installer
ubuntu-restricted-extras
unixodbc
unrar
ureadahead
vlc
vlc-data
vlc-nox
vlc-plugin-pulse
w32codecs
It appears that the script didn't get far before it aborted due to the required interaction.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstallation changd Linux - Newbie 1 07-07-2006 04:13 PM
Win98 reinstallation michaelc187 General 2 11-05-2004 11:43 AM
Reinstallation! Jmcatch742 Linux - Newbie 3 10-02-2004 06:44 PM
Reinstallation: Doin' it right! mattp Linux - Newbie 40 03-08-2004 10:20 PM
reinstallation Nay Linux - Newbie 10 12-21-2003 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration