Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1037  / 3 Years ago, tue, august 31, 2021, 11:48:22

I am newbie to Ubuntu, I got into it 2 weeks ago and I reinstalled it like 10+ times already.

In most cases Ubuntu graphic interface wont show up, just command line.

Few times I had "low graphic settings" error.

All of this happens mostly when I decide to remove useless repository, or install-remove some programs, or remove some pre-installed programs like Rhytmbox or Solitaire, which definitely shouldn't give any problems, but than baah - and my Ubunt wont load.



I think that good way to keep system alive is never to uninstall anything.
But sometimes when I install some program from some repository, and I dont need it - I want to remove repository aswell and again my Ubuntu gets destroyed.



How can I keep my system clean yet working?

What should I do?

Should I maybe use some backup-program also? How can I organize my files/system so that I dont have to reinstall it all every time I mess something?



Thanks alot!



P.S.: For example right now I installed LAMP using taskel. Something went wrong, mySQL didn't get installed, so I want to remove it all and retry. how do I do it properly?

Or, say, JDE. I installed Oracle 7 JDE since I needed it for PhpStorm, I failed to install it since some repository didnt exist. Next time failed version installed. After finally removing old stuff and installing Oracle 7 it worked, than I rebooted and bah - again my system wont load. What am I doing wrong? Am I lost for this world? :)


More From » system

 Answers
5

Basically, your going about this all wrong. In you example, a failed lamp install could have just been fixed with sudo apt-get -f install Same thing with JDE. sudo apt-get remove name-of-package-here works for everything you installed via apt. If you installed via dpkg then sudo dpkg --remove package-name-here.



Missing or incorrect configuration can cause X (the GUI system) to not start. Usually you fix this is just a matter of removing /etc/X11/xorg.conf and then sudo restart lightdm. If that doesn't work you may need to re-configure your drivers. How you do that depends on your hardware and setup.



Removing repositories is dangerous. It's fine to do it. But when you install something via apt you install all it's dependencies. By removing a repository you could be removing more then the repository for just one package. apt will leave the old debs installed (from the disabled repo) but they will be "orphaned", meaning they will never get updates again (unless there in another repo). This is even more problematic if your using a "nightly" repo that supplies dependencies that are shared by many repos. apt will always use the "latest" version, but that version is in a repo that no longer exists.



Re-installing is silly. You should NEVER have to re-install Ubuntu, short of a hard drive failure, or partitioning mix up.



For backups: I recommend back-in-time. It's very easy to use. You should backup your $HOME directory and probably /etc/. Don't even bother backing up the rest. The only exception would be if you put files in an odd location.



One other side note. Won't load, is not that helpful. I am assuming, by your questions that X is not loading. The console is fully functional and can be used to fix problems with X not loading in very short order.



Stick with it. Once the learning curve is over, Linux is very easy to use and maintain.


[#34231] Tuesday, August 31, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ithriv

Total Points: 46
Total Questions: 115
Total Answers: 96

Location: Malaysia
Member since Wed, May 11, 2022
2 Years ago
ithriv questions
Tue, Mar 14, 23, 14:31, 1 Year ago
Wed, Oct 5, 22, 02:59, 2 Years ago
Fri, Mar 11, 22, 10:12, 2 Years ago
Thu, May 11, 23, 10:55, 1 Year ago
Sun, Sep 26, 21, 06:47, 3 Years ago
;