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.
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 ?
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.
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.
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.
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.
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.
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 ?)
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.