LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-01-2010, 04:02 AM   #61
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Hello,

The reference to that package is no error. The word error is in the name of the package libgpg-error0 so you don't have to worry about that one. Sorry I didn't see it before.

Package details:
Code:
libgpg-error0  1.4-2          library for common error values and messages
So I imagine you're good to go. Or am I missing something?

Kind regards,

Eric
 
Old 03-01-2010, 04:16 AM   #62
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
So you think that every package of that list has been installed ?

If so, what's the next step ?
 
Old 03-01-2010, 04:27 AM   #63
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

The next step is to recreate the --get-selections file so that you have a backup list of all packages installed and their status. For this run the command:
Code:
dpkg --get-selections>yourselections.txt
and keep that file safe.

Now you could plug in your USB and copy your data to your Ubuntu and start using it again. Unless you have other questions, I think you're set to go. Remember to make backups of your personal data on a regular basis or save them to another partition or removable media like an external disk/USB stick. Also copy the file generated above to that 'safe' location. It'll come in handy whenever you need to reinstall your system.

Make a new 'get-selections' file whenever you do package installations, updates, and so on, to reflect the state of your system in that file.

Kind regards,

Eric
 
Old 03-01-2010, 04:53 AM   #64
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
ok. But what about the softwares that were installed ? How do I install them again ?
 
Old 03-01-2010, 04:59 AM   #65
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Now I'm lost.

You reinstalled the packages with the script and using the list in p2install.txt.

Or did that script fail on the first line?

Kind regards,

Eric
 
Old 03-01-2010, 05:09 AM   #66
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
I'm the one that is lost lol.
I don't understand what packages are that much. All I want is to be able to use the programs I was using before reinstalling everything.
From what you've told me, and what I have understood is that packages are librairies that are used by programs. But I haven't installed the programs yet, have I ? For example, amsn, which you talked about earlier, is not installed yet.
Hence my question : how to install them ?
 
Old 03-01-2010, 05:41 AM   #67
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

In the list p2install.txt you have both libraries, software packages, the works...

If for example amsn is not installed and it is in the p2install.txt file then the script didn't get to that line and exited with an error before.

You can install manually using the following command:
Code:
sudo apt-get install amsn
which will install amsn and all necessary dependencies.

If you can give me some time, I'll write a small script to process the p2install.txt file and check if packages/libraries are installed or not, and if they're not to install them interactively (so that you can see what happens).

Another more time consuming way is to open the p2install.txt file in an editor and check every name using the Synaptics package manager for example and install it from there if not installed. But that's manual labor.

This is exactly why the 'get-selections' file is so important, because you can use that file with dpkg to get your system up and running with the same packages in no time with minor manual intervention.

Kind regards,

Eric

Last edited by EricTRA; 03-01-2010 at 05:44 AM.
 
Old 03-01-2010, 06:03 AM   #68
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Ok no problem I'll wait until you can write that script, this is not that urgent.
The 4th and 5th lines of p2install.txt are amsn and amsn-data.
The software amsn is not installed in the sense that when I go to run application (alt+f2) and then write amsn and hit enter, I receive the following error :
could not open location file:///home/elishac/amsn. Error stating file 'home/elishac/amsn': No such file or directory.
There is no amsn link in Applications->Internet either, but it was there before the reinstallation.
 
Old 03-01-2010, 06:10 AM   #69
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Of course it will not run if it's not installed. You can easily install it, either using the Synaptics or by typing the following command in a terminal:
Code:
sudo apt-get install amsn
That will install all necessary files, and you'll have the aMSN icon in the menu Application - Internet if I remember correctly.

I'll look into the script when I'm home (around 16:00).

Kind regards,

Eric
 
Old 03-01-2010, 02:12 PM   #70
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi elishac,

Finally 5 minutes of time. Here goes, I wrote the following and tested it on my ubuntu spare, and it works. What it does is go through the list (p2install.txt) and check if a package is already installed. If it is it'll move on to the next line. If it's not it will install it automatically. I didn't have more time to put into it but it works, small and simple. So just change the contents of the other script for the following:
Code:
#!/bin/bash
#set -x

while read LINE;
do
	VALUE=$(dpkg -l $LINE | tail -1 | awk -F ' ' '{ print $1 }')
	if [ $VALUE = "ii" ]; then
		echo "$LINE seems to be already installed"
		echo "Move on to the next line...";
	else
		echo "$LINE doesn't seem to be installed."
		echo "Installing now"
		apt-get -y install $LINE
	fi
done<p2install.txt
Then run the script like you did with the other one:
Code:
sudo ./scriptname.sh
(change scriptname for what you have of course). If you want to save the output to a file then use this:
Code:
sudo ./scriptname.sh>results.txt
and you can review later what has been done by the script and what was installed.

Kind regards,

Eric
 
Old 03-01-2010, 02:44 PM   #71
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Hello Eric, thanks for the script. I run it and I received the following error :
line 7: |: =: unary operator expected
 
Old 03-01-2010, 03:14 PM   #72
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

That's very strange, I ran it three times over right now before posting and I get no errors at all. Did you copy paste what I posted or typed in manually?

Kind regards,

Eric
 
Old 03-01-2010, 04:06 PM   #73
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
I copy pasted.
Actually, hundreds of lines appeared. I hadn't waited enough.
This was just the first one. Every now and then this same line appears.
It's still working now (it's been running since my last message, about 1hour ago)
the last ones are :

./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching nvidia-180-modaliases.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching odt2txt.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-cs.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-da.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-en-gb.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-et.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-hu.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-pl.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-pt.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-ru.
./autoinstall.sh: line 7: [: =: unary operator expected
No packages found matching openoffice.org-help-sl.
./autoinstall.sh: line 7: [: =: unary operator expected

Last edited by elishac; 03-01-2010 at 04:15 PM.
 
Old 03-01-2010, 04:06 PM   #74
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
Dang. Wish I'd spotted your discourse before I ran WipeDrive. I have 2 laptops, 1 failing HDD, and no wireless access. I had the one with the failing HDD configured pretty well, playing back DVD's and Skyping with a USB mic. Was working on t'other to get the DVD working, and coulda used some of your commands to find out what was on the "failing" laptop (Acer Aspire 3610) to get the dual-booting laptop (eMachines M2352) configured. Ah well, I'll know better next time, likely this coming weekend, when I install Win 7 and Ubuntu 9.10 Netbook on them both.

I'm running WipeDrive to clean off the failing HDD before I replace it. While that was running on the Aspire, I've been lurking in LQ on the M2352 in XP SP3. Time to restart in Ubuntu and do some of what you've eluded to in this thread...very informative, THX!
 
Old 03-01-2010, 04:09 PM   #75
theiron
Member
 
Registered: Jan 2010
Posts: 36

Rep: Reputation: 17
I'm a newbie in Linux, too, but I think I see where the error is coming from:
Quote:
echo "Move on to the next line...";
Should the ";" be on the end of that line? It isn't on any others.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:13 PM
Win98 reinstallation michaelc187 General 2 11-05-2004 12:43 PM
Reinstallation! Jmcatch742 Linux - Newbie 3 10-02-2004 07:44 PM
Reinstallation: Doin' it right! mattp Linux - Newbie 40 03-08-2004 11:20 PM
reinstallation Nay Linux - Newbie 10 12-21-2003 09:58 AM


All times are GMT -5. The time now is 07:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration