Score:2

What is the best way to ensure proper installation of programs?

bf flag
AOS

I've used Ubuntu for a little over 2 years now. I've recently ungraded to Ubuntu 22.04. So far, I'm very happy with it as the GUI is more like Windows PC. However, I still have a reoccurring problem, and that is installing programs on Ubuntu/Linux. I follow instructions very carefully, and from my perspective, the problem isn't me. The problem appears to be scripts pointing to outdated and or defunct packages/repositories. I understand the attraction to Linux platforms, but issues with installation appears to be unique to Linux. I don't have the same issues installing programs under windows. Yet, people don't give me the benefit of the doubt and immediately assume I did something wrong.

The best installations I've ever had were using AppImgage files. How come more programmers aren't using them? I don't mean to seem ungrateful for the time and effort that people put into creating these free applications. But, yet at the same time, installations appear to be sloppy more times than not.

What are some common beginner mistakes and pitfalls I should avoid when installing software on Ubuntu? What is the best way to ensure proper installation of programs?

Thank you!

user535733 avatar
cn flag
"*I follow instructions very carefully, and from my perspective, the problem isn't me.*" That suggests that perhaps you followed the wrong instructions. The internet is full of lousy instructions from well-intentioned folks. Many problems cannot be solved by following instructions. You must learn and finally understand the problem to solve it properly.
oldfred avatar
cn flag
As new user best to always install from Ubuntu repository. And to understand things better to use synaptic which used to be a default & now has to be installed. You can install apps from any flavor into any flavor, but may also get additional dependencies. I use kubuntu, so mostly qt apps, but I install some gnome apps & get a lot of dependencies. `sudo apt install synaptic`. Then you see actual app file name which is not always the name used.
AOS avatar
bf flag
AOS
Thank you @ArturMeinild After rereading, I realized my post was a bit ambiguous. However, so is the process of installing programs. I've read a lot about linux on how to, but very little is available on trouble shooting. Content is written in such away like "it's so simple," or assuming that the reader is a Linux veteran. I'm very frustrated, I spend hours trying to learn linux, and the more I learn, the less I know.
Nmath avatar
ng flag
Artur's answer has some very good general advice. This is a good question, but it would be better suited for Ubuntu Forums. These kinds of broad, generalized questions just aren't a very good fit for our Q&A format.
AOS avatar
bf flag
AOS
Thanks @Nmath, I was just confused, and had many thoughts at the same time. This is the first place I got tangible answers, instead of 1,500 downvotes 'cause I didn't understand.
Mahler avatar
in flag
I've not read 'compile from sources'. It is the best way to get the last version.
AOS avatar
bf flag
AOS
No problem @ArturMeinild. I kinda feel like when I switched from Paintshop pro to Photoshop. Entirely different world, and frustrated learning something new, because it's so tempting to go back to old programs.
Score:5
vn flag

In my experience, most new Ubuntu users that appear here with packaging and installation problems have caused a number of self-inflicted problems.

However, it's not always easy as a beginner to understand how you inflict these issues on yourself, so here comes a list of things to do and not do when using Ubuntu.

Do only this to be safe and not run into problems:
  • Install software from the Ubuntu store and official software repositories. These are officially supported, and will not get you into versioning conflicts. This will by default be .deb packages (Debian native, Ubuntu's default packaging system) and also Snap packages (see next bullet).
  • Install Snaps, Flatpaks or AppImages. These are all good solutions to running newer versions of applications that (mostly) just work. And if they don't work, the installation is fully reversible, with no harm done to the rest of the system.
Do only this if you understand the full consequences:
  • Upgrade packages to newer versions than the ones supported by Ubuntu. Some new user think they need to install newer versions because of security patches, not realizing the Ubuntu team already patches all packages. This can lead to more problems than it solves.
  • Install software from PPAs (Personal Package Archives) or third-party repos. PPAs are only up to date if their maintainer assures this. A PPA can get outdated and abandoned with a new release, so plan accordingly.
  • Compile or install custom versions of applications. This will usually require more specialized knowledge, and also knowledge about how to troubleshoot if things go haywire. In addition, be aware that by doing this, you immediately loose all security updates provided by the Ubuntu team (since you have now chosen to be the maintainer of your installed application). Again, plan accordingly.
Never do this under any circumstances:
  • Mess with the default Python installation on Ubuntu. This will usually end with a broken system.
  • Follow guides you don't understand. Don't just blindly follow guides on the internet. Just don't. Check if a guide is up to date, how reliable the source is, and what the guide actually tells. There are tons of outdated guides, so at least some basic understanding and critical review is necessary when reading any guide. Even the official Ubuntu documentation can be wrong about some details from time to time.
AOS avatar
bf flag
AOS
Thanks you. Are Snaps and FlatPacks compatible with Ubuntu 22.04 (64bit) structure?
Artur Meinild avatar
vn flag
Snaps are part of the system by default. See the tags [tag:snap], [tag:flatpak] and [tag:appimage] (click "Learn More...") to see more details and installation instructions for those.
AOS avatar
bf flag
AOS
Ahh! Thank you.. My seedbox recommended Linux/Ubuntu for dummies. I think there's no other book that can get simpler than that...
user535733 avatar
cn flag
+1 Very good answer, well written, easy to understand.
vn flag
About the _Mess with the default Python installation_, with the recent shift from `pip` to `pipx` should be much less problems
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.