Ubuntu、Debian、Kali、または同様のLinuxオペレーティングシステムをインストールしたばかりで、APTパッケージマネージャーを使用してリポジトリを追加している場合は、このソリューションがお客様のためです。
Command Add-Apt-Repositoryを使用してUbuntuまたはDebianシステムにソフトウェアPPAリポジトリを追加したい場合は、「コマンドが見つかっていない」と記載のエラーメッセージが表示されます。
このエラーは、DebianベースのLinuxシステムに追加のソフトウェアパッケージが必要なサポートされているソフトウェアパッケージが必要であるために表示されます。したがって、それを使用してリポジトリを追加する前に、共通のソフトウェアプロパティをインストールする必要があります。
Ubuntu 24.04、22.04、20.04、19.10/19.04、18.10/18.04、17.04、16.04などの最新のUbuntuおよびDebian Linuxシステムのすべてについて。 Kali Linux; Linux MintとDebianは以下のコマンドを使用します。
sudo apt-get install software-properties-common
上記のコマンドの出力:yを押して、パッケージのインストールを継続します。
root@kali:~# sudo 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:
libpython3.6-minimal libpython3.6-stdlib live-boot-doc python3.6
python3.6-minimal
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
apt apt-utils gcc-9-base gir1.2-packagekitglib-1.0 libappstream4
libapt-inst2.0 libapt-pkg5.0 libglib2.0-0 libglib2.0-bin libgnutls30
libhogweed5 libnettle7 libp11-kit0 libpackagekit-glib2-18 libpython3-stdlib
libpython3.7-minimal libpython3.7-stdlib libreadline8 libssl1.1 libstdc++6
libstemmer0d libtasn1-6 libyaml-0-2 p11-kit-modules packagekit
packagekit-tools python3 python3-dbus python3-distro-info python3-minimal
python3-software-properties python3.7 python3.7-minimal unattended-upgrades
Suggested packages:
apt-doc aptitude | synaptic | wajig dpkg-dev gnutls-bin appstream
python3-doc python3-tk python3-venv python-dbus-doc python3-dbus-dbg
python3.7-venv python3.7-doc binutils binfmt-support bsd-mailx default-mta
| mail-transport-agent needrestart
The following NEW packages will be installed:
gcc-9-base gir1.2-packagekitglib-1.0 libappstream4 libhogweed5 libnettle7
libpackagekit-glib2-18 libpython3.7-minimal libpython3.7-stdlib libreadline8
libstemmer0d libyaml-0-2 packagekit packagekit-tools python3-dbus
python3-distro-info python3-software-properties python3.7 python3.7-minimal
software-properties-common unattended-upgrades
The following packages will be upgraded:
apt apt-utils libapt-inst2.0 libapt-pkg5.0 libglib2.0-0 libglib2.0-bin
libgnutls30 libp11-kit0 libpython3-stdlib libssl1.1 libstdc++6 libtasn1-6
p11-kit-modules python3 python3-minimal
15 upgraded, 20 newly installed, 0 to remove and 724 not upgraded.
Need to get 15.0 MB of archives.
After this operation, 29.8 MB of additional disk space will be used.
Do you want to continue? [Y/n]
古いubuntuおよびdebianバージョンの場合、このコマンドを使用してください。
sudo apt-get install python-software-properties
彼は2014年以来、テクノロジーとこのテーマに関する執筆に常に情熱を傾けてきました。彼は、消費者テクノロジーからエンタープライズソリューションまで、あらゆる種類のテクノロジーに強い関心を持っています。著者に連絡することができます - [保護された電子メール]