-->

Cara Mengatasi Error ‘add-apt-repository command not found’ Pada Ubuntu

Cara Mengatasi Error add-apt-repository command not found di Ubuntu dan Debian cukuplah mudah kita tinggal mengsintall salsah satu software di linux. add-apt-repository adalah utilitas command line untuk menambahkan PPA (Personal Package Archive) di Ubuntu dan Debian. Di Ubuntu versi LTS sendiri biasanya paket ini sudah disediakan namun di Ubuntu non LTS belum sehingga saat kita mencoba menambahkan repository PPA akan memunculkan error add-apt-repository command not found.
Nah cara mengatasinya cukup mudah yakni dengan menginstall paket tersebut dengan perintah
sudo apt-get update
sudo apt-get install -y software-properties-common
Contoh output:
root@haxorid:~$ apt-get install -y software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  python3-software-properties unattended-upgrades
Suggested packages:
  bsd-mailx mail-transport-agent needrestart
The following NEW packages will be installed:
  python3-software-properties software-properties-common unattended-upgrades
0 upgraded, 3 newly installed, 0 to remove and 116 not upgraded.
Need to get 67.3 kB of archives.
After this operation, 666 kB of additional disk space will be used.
Get:1 http://asi-fs-n.contabo.net/ubuntu artful/main amd64 python3-software-properties all 0.96.24.17 [20.3 kB]
Get:2 http://asi-fs-n.contabo.net/ubuntu artful/main amd64 software-properties-common all 0.96.24.17 [9,514 B]
Get:3 http://asi-fs-n.contabo.net/ubuntu artful-updates/main amd64 unattended-upgrades all 0.98ubuntu1.1 [37.4 kB]
Fetched 67.3 kB in 0s (1,042 kB/s)
Preconfiguring packages ...
Selecting previously unselected package python3-software-properties.
(Reading database ... 66728 files and directories currently installed.)
Preparing to unpack .../python3-software-properties_0.96.24.17_all.deb ...
Unpacking python3-software-properties (0.96.24.17) ...
Selecting previously unselected package software-properties-common.
Preparing to unpack .../software-properties-common_0.96.24.17_all.deb ...
Unpacking software-properties-common (0.96.24.17) ...
Selecting previously unselected package unattended-upgrades.
Preparing to unpack .../unattended-upgrades_0.98ubuntu1.1_all.deb ...
Unpacking unattended-upgrades (0.98ubuntu1.1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (234-2ubuntu12.1) ...
Setting up unattended-upgrades (0.98ubuntu1.1) ...

Creating config file /etc/apt/apt.conf.d/50unattended-upgrades with new version
Created symlink /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service -> /lib/systemd/system/unattended-upgrades.service.
Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable unattended-upgrades
Processing triggers for man-db (2.7.6.1-2) ...
Setting up python3-software-properties (0.96.24.17) ...
Processing triggers for dbus (1.10.22-1ubuntu1) ...
Setting up software-properties-common (0.96.24.17) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (234-2ubuntu12.1) ...
Processing triggers for dbus (1.10.22-1ubuntu1) ...
sekarang anda menjalankan perintah add-apt-repository, anda tidak lagi menemukan error yang sebelumnya! Gampang kan caranya