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.
Hello. I broke my Desktop Environment few months ago after a system upgrade. The Desktop Environment broke because I installed some drivers for games and also some ppa. I fixed some of the problems by updating and reinstalling some system inbuild packages, removing unwanted ppa, dpkg commands, synaptic manager. But Some application and system panel still works wired sometimes(eg:when I press start button, application list popups but If press start button again, it doesn't go back). I am looked at dependencies of important packages in the linux system( eg: cryptsetup) and installed it. When I update my repo, apt shows : some packages are held back. So I installed those packages manually.
Is there any script , tool or one single command which help me fixing the dependency problem ? I want to make sure that the dependencies of important packages are installed on the system.
It might help to know what distribution you are running, what version, with what desktop, and some idea of what exactly you installed and how, removed and how, and why.
As stated, your question gives us nowhere to start considering the situation.
I will just add that if you install packages using dpkg you may end up with dependency problems because dpkg does not install dependencies. If you want to use dpkg you better know what you are doing.
It is way easier to use apt as it installs all the required dependencies.
When apt says that some packages have been kept back, it means that you have altered the version of packages and apt cannot solve their dependencies or versions of the required packages.
And try to keep your repository as minimal as possible.
And try to keep your repository as minimal as possible.
I read your post and since I do not know well enough I want to ask a question about your answer. Can I ask a reason what happens otherwise or simply what is the disadvantage of having a lot of repositories? Isn't it good to keep more to get? Because if the one did not have the package you need, the other one may have?
Last edited by tercel; 09-04-2022 at 03:42 PM.
Reason: change notification option
I read your post and since I do not know well enough I want to ask a question about your answer. Can I ask a reason what happens otherwise or simply what is the disadvantage of having a lot of repositories? Isn't it good to keep more to get? Because if the one did not have the package you need, the other one may have?
If I might step in: the distribution repositories are carefully managed so that there are no collisions and few (if any) cross dependency traps. Some external repos are managed as carefully, but there is no lock on that just good practice. If you add a non-distribution repo that has a collision package or a dependency cross you can mess up your installation by doing a simple software update. Same with to many installations form source. The more complications you add to the package tracking the better the chance of making it fail.
Best is to keep it simple, restricted to the distribution repos only. If you must add one (and don't we all at one time or another) the best things is to keep it to very few and remove them if they are no longer needed.
The more potential single points of failure you add to the system, the greater the chance that you will trip over one. Simple is just more reliable.
If you like excitement, go ahead any way you want: but in that case regular backups become even more critical.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.