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