In this write-up, we will explore the reasons behind the generation of this error and methods of resolving this error in Ubuntu.
To understand the error, we will first add the repository of libreoffice in Ubuntu using the simple command:
Now to resolve this error, we have to install the package “software-properties-common”, and this package is available in the default repository of Ubuntu which can be verified by using the command:
As we can see that the package is available, so we can install it using the command:
When the above command is successfully executed, then we will again try to add the repository of libreoffice:
Finally, after adding the repository of LibreOffice, we will update all the packages of Ubuntu:
Now, we are ready to install the package of LibreOffice after fixing the error of add-apt-repository:
Though Ubuntu comes with many packages by default there are still many packages that are not included in the default repository of Ubuntu. To install these packages there are different methods among which one is by adding their repositories. To add the repositories of third-party applications we use the add-apt-repository utility which sometimes displays the error of “sudo:add-apt-repository:command not found”. This error has been resolved in this article using different type of approaches..
Data centers are popping up everywhere. With the rapid growth of AI, cloud services, streaming…
Our commitment to building a thriving open source community is stronger than ever. We believe…
The clock was ticking: Node.js 18’s upstream End of Life (EOL) The OpenJS Foundation is…
June 25th, 2025 – Canonical, the company behind Ubuntu, and Pure Storage, the IT pioneer…
Co-authored with Julie Muzina A year ago, during our Madrid Engineering Sprint, we challenged ourselves…
Welcome to the Ubuntu Weekly Newsletter, Issue 897 for the week of June 15 –…