Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-24-2006, 02:45 PM
|
#1
|
LQ Newbie
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18
Rep:
|
reinstall apps without reformat or synaptic
Been having trouble ever since I installed Kubuntu and then tried to use ClamAV, in which case the system crashed and I had severe filesystem errors. Those were fixed by running fsck from the LiveCD, however many of the symlinks were destroyed.
I can boot into recovery mode, kdm doesn't work, so I use gdm instead. The windows wouldn't open in KDE and gnome wouldn't run a single app when I started its session in failsafe, leaving me with nothing but a blank colored orangish screen. Many error messages popped up, indicating the failure of every single necessary gnome component. I absolutely will not reformat with a clean install because I am stubborn.
What method should I use to reinstall gnome and all its associated packages? Is there a list of all packages necessary for it to function? Remember, I cannot use any graphical means...command line only. Unless, of course, there is a way to install synaptic packages from the LiveCD to the hard drive device.
|
|
|
11-24-2006, 02:56 PM
|
#2
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep: 
|
Well, synaptic is just a graphical front-end for apt, your package manager. So it's not a problem if you just know what you like to install
Code:
apt-get install packagename
will install packagename, and if it has dependencies, it resolves, downloads and installs them too. Just like Synaptic, but on command-line. Of course you need to know what to install, but I assume you'll either know or find it out quickly. Apt can also handle reinstalling:
Code:
apt-get install --reinstall packagename
should do it for you. If you wish to use your cd, you can either install packages one by one using
Code:
dpkg install /path/to/packagename.deb
or just define your CD as one reposity for apt-get. I suggest you use apt-get with a normal internet connection (if it's working, is it?)
Having no graphical user interface doesn't prevent you from doing something (well, maybe photo editing is a bit difficult task then), you'll just have to know the commands -- and you should, really  take a look at linuxcommand.org for the basics. Oh, and read man pages whenever you need more information about something:
Code:
man -k keyword
man commandname
should help -- the -k-option searches for manpages for a given keyword, and plain man command displays man-page for the given commandname (for example), if it exists.
Last edited by b0uncer; 11-24-2006 at 02:57 PM.
|
|
|
11-24-2006, 03:03 PM
|
#3
|
LQ Newbie
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18
Original Poster
Rep:
|
ah
thank you. I had a feeling it was something like that. I'm used to the command line, I've just never installed using apt before. I also have a need to do things the hard way, but no matter. I appreciate the help (for without it, I would probably have fretted a very simply problem...considering I've used Linux for nearly a year and a half now, lol) I suppose all I have to do is get a list of files that I need to reinstall, shouldn't be too hard.
|
|
|
11-24-2006, 03:34 PM
|
#4
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
let apt do the hard work. apt-get install --reinstall kde (or gnome) _should_ sort out all the files and dependencies for you. you may want to add your cd('s) to your sources list before hand to minimize the amount you have to download. "apt-cdrom add" with the cd in the drive.
|
|
|
11-24-2006, 03:35 PM
|
#5
|
LQ Newbie
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18
Original Poster
Rep:
|
ok, I tried apt-get install --reinstall...and got this error message
Code:
/usr/lib/apt/methods/http:error while loading shared libraries:bKGD:cannot open shared object file:No such file or directory
This is weird because it worked when I reinstalled kdm, but then stopped working afterward.
Last edited by soar747; 11-24-2006 at 03:42 PM.
|
|
|
11-24-2006, 03:41 PM
|
#6
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
can you do "ldconfig" as root then try again?
|
|
|
11-24-2006, 03:52 PM
|
#7
|
LQ Newbie
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18
Original Poster
Rep:
|
just tried it, same result
|
|
|
11-25-2006, 07:59 AM
|
#8
|
LQ Newbie
Registered: Jul 2006
Location: New Delhi, India
Distribution: Kubuntu 8.10
Posts: 24
Rep:
|
been into linux since a few months only... so please disregard the ignorance if any...
1) use dselect or aptitude to get a interface for installing packages from command line.
2) no need to redefine the apt list if u can sudo and copy the packages from disc to /var/cache/apt/archives. The said path is the first place where apt based apps look when they have to install anything.
If i have to follow the above steps, I'll do the second one first. your system doesn't even have the basic libs, or they are corrupted, so u end up with an Http lib error... I am recommending this solution because this way you will be able to do an offline installation, circumventing the need to use HTTP libs. Worth a shot??
|
|
|
11-26-2006, 07:34 PM
|
#9
|
LQ Newbie
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18
Original Poster
Rep:
|
well, yes, except I got quite anxious and finally decided to reformat..
I really appreciate the advice though, the next time this happens, if it happens again, I'll certainly know what to do.
(should mention, I decided to put /home on a separate partition this time so I wouldn't lose anything if it happens again.)
thanks again everyone.
|
|
|
All times are GMT -5. The time now is 05:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|