sudo: add-apt-repository: command not found

 My Ubuntu was missing apt-add-repositoy.
This is was I solved if…

Has a newbie I’v started to run apt-get install software-properties-common, but has you can see I got some erros

[email protected]:/home/# apt-get install software-properties-common
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libdirac-encoder0 libmp3lame0 libopencore-amrnb0 libopencore-amrwb0 libopenjpeg2 libvo-aacenc0 libvo-amrwbenc0 libx264-123 libxvidcore4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
 python3-software-properties unattended-upgrades
Suggested packages:
The following NEW packages will be installed:
 python3-software-properties software-properties-common unattended-upgrades
0 upgraded, 3 newly installed, 0 to remove and 27 not upgraded.
Need to get 28.5 kB/55.0 kB of archives.
After this operation, 549 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err raring-updates/main python3-software-properties all
 404 Not Found [IP: 80]
Err raring-updates/main software-properties-common all
 404 Not Found [IP: 80]
Failed to fetch 404 Not Found [IP: 80]
Failed to fetch 404 Not Found [IP: 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Always run the update, before any install!!

apt-get update

And then install the package.

apt-get install software-properties-common

It worked!

[email protected]:/home# apt-add-repository
 Error: need a repository as argument


Leave a Reply

Your email address will not be published. Required fields are marked *