LinuxQuestions.org
Help answer threads with 0 replies.
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 02-28-2010, 05:21 AM   #1
elishac
Member
 
Registered: Nov 2009
Posts: 522

Rep: Reputation: 33
Ubuntu reinstallation


Hello,


I've had some problems with ubuntu and I had to reinstall the whole system.
Now it's brand new, and I'd like to make it the way it was.
What are the different procedures you advise me to do ?

Thanks.
 
Old 02-28-2010, 05:34 AM   #2
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 again

First of all you'll need to update your system. Go to System - Administration - Update manager and start it. Next click on the button Check. The update manager will ask you for your password. Type it in and click on OK.

When the check is finished and you have packages listed to update, click on the button Install updates.

Kind regards,

Eric
 
Old 02-28-2010, 06:48 AM   #3
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Hello again

it took some time. It's almost done now. A window popped up. It is untitled debconf and says configuration grub-pc. "What would you like to do about grub?" keep the local version currently installed, install the package maintainer's version, show the diff between the versions, show a side by side difference between the version, show a 3way diff between available versions, do a 3way merge between available versions (experimental), start a new shell to examine the situation.
I can then press forward or cancel.
 
Old 02-28-2010, 06:53 AM   #4
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
You did install from an Ubuntu 9.10, right? I don't know why grub is updating, it shouldn't do that as far as I know. You can stay with your current version for now and we'll check it out later.

So select: keep local version currently installed

and click Forward.

Kind regards,

Eric
 
Old 02-28-2010, 06:54 AM   #5
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 388
Blog Entries: 9

Rep: Reputation: 88
Quote:
keep the local version currently installed
if I have a multi boot

Quote:
install the package maintainer's version
if it's a stand-alone install, with no others O/Ss installed.
 
Old 02-28-2010, 06:55 AM   #6
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
It's finished. I'm restarting. What next ?
pierre2, I had already pressed forward. But yes, it's multiboot. Thanks.

Last edited by elishac; 02-28-2010 at 06:56 AM.
 
Old 02-28-2010, 06:59 AM   #7
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
Ok, now comes the tricky part.

First you'll have to make a list of the packages that are installed, just like you did on your previous installation. Next you'll have to compare that list against the one you have from the other installation (packages.txt). Then you'll have to review the differences and delete the ones you don't want (like the one that screwed up your previous install). And last but not least you'll have to process the list (difference between current and previous) with apt-get to install those packages that are missing.

Quite the job you got lined out right?

We'll take it one step at the time.

Kind regards,

Eric
 
Old 02-28-2010, 07:01 AM   #8
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Ok so where do I start ?
Is it :
echo $HOME/usr/share/doc/* | tr ' ' '\n' | cut -f6 -d '/' > packages.txt
 
Old 02-28-2010, 07:11 AM   #9
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
Correct, but save it to original.txt instead so you don't get confused later on. And don't mention the $HOME or you'll get nothing but errors.

So, run this:
Code:
echo /usr/share/doc/* | tr ' ' '\n' | cut -f5 -d '/' > original.txt
That will generate a list of the currently installed packages (at least the ones that have followed correct procedures and have created documentation).

When that's done, can you post the last line of each of the documents here to make sure that they are formatted the same way? You can use this command in a terminal.
Code:
tail -1 packages.txt
tail -1 original.txt
Kind regards,

Eric
 
Old 02-28-2010, 07:14 AM   #10
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
The packages.txt is not on the computer yet, so tail -l packages.txt wouldn't work. I did nothing but what I told you.
Is it -f6 or -f5 (can you quickly explain me the contents of this command please ?)
 
Old 02-28-2010, 07:25 AM   #11
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
You will need the packages.txt file on your computer so that you can make a comparison between the two. So when you finish this step you'll need to copy it to your computer.

This is what the command will do:
Code:
echo /usr/share/doc/*
will generate a list of the names in the directory /usr/share/doc; separated by space.
Code:
|
the pipe redirection will take the output from the first command (echo) and instead of showing it to you on the screen, it will give it as input to the next command (tr) which will take the space character (' ') and replace it with a newline character ('\n')
Code:
tr ' ' '\n'
Code:
|
again, the output of the last command (tr) will be given as input to the following command (cut) instead of showing it on the screen; this command will cut out the 5th field it encounters (-f5) using the slash as a separator (-d '/').
Code:
cut -f5 -d '/'
and finally the
Code:
> original.txt
will write the final output to a file instead of on the screen.

If you want to check what the commands do for real, you can safely run them one after the other seperately like this:
Code:
echo /usr/share/doc/*
will show the list on screen
Code:
echo /usr/share/doc/* | tr ' ' '\n'
will show the same list on screen but now with every instance on a new line
Code:
echo /usr/share/doc/* | tr ' ' '\n' | cut -f5 -d '/'
will only show you the package name (without the leading /usr/share/doc/) , each name on a newline. And the last part (>original.txt) will write it to a file instead of showing it on the screen.

I hope that makes it a bit clear what's being done, so you don't have to rely on everything blindly.

Kind regards,

Eric
 
Old 02-28-2010, 07:27 AM   #12
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
BTW, yes it is -f5 and not -f6 because remember the other command you ran from a live session on a mounted partition (/OLD/usr/share/doc) and not on /usr/share/doc so there is one field less now then in the other session.

Got it?

Kind regards,

Eric
 
Old 02-28-2010, 07:34 AM   #13
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Yeah I got it, thanks. So I did it, and I'm about to copy packages.txt from the usb stick into the home folder (i'm not copying the other files yet since you didn't say anything about them).
I think there's a linux command to compare but I'm not sure how it works.

tail -1 original.txt
xsltproc
xplash
xterm
x-ttcidfont-conf
xulrunner-1.9.1
xulrunner-1.9.1-gnome-support
yelp
zenity
zip
zliblg

tail -1 packages.txt
xterm
xtrans-dev
x-ttcidfont-conf
xulrunner-1.9.1
xulrunner-1.9.1-gnome-support
yelp
zenity
zip
zliblg
yelp
zenity
zip
zliblg
zliblg-dev


I've never used any of those :/

Last edited by elishac; 02-28-2010 at 07:41 AM.
 
Old 02-28-2010, 07:39 AM   #14
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
Ok, if you copied over the packages.txt then please run the same command with that file.
Code:
tail -1 packages.txt
and post the output here.

Kind regards,

Eric
 
Old 02-28-2010, 07:42 AM   #15
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
Quote:
Originally Posted by elishac View Post
Yeah I got it, thanks. So I did it, and I'm about to copy packages.txt from the usb stick into the home folder (i'm not copying the other files yet since you didn't say anything about them).
I think there's a linux command to compare but I'm not sure how it works.

tail -1 original.txt
xsltproc
xplash
x-ttcidfont-conf
xulrunner 191
xulrunner gnome support
yelp
zenity
zip
zliblg

I've never used any of those :/
BTW, you typed it over right? because normally there cannot be any spaces in the names. the
Quote:
xulrunner gnome support
for example should be
Quote:
xulrunner-1.9.1-gnome-support
or something like that.

It's very important to post exact information elishac, in order to avoid mistakes.

Kind regards,

Eric
 
  


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 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 10:16 AM.

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