Tin tức và phân tích của tất cả các thiết bị di động

Không tìm thấy lệnh Add-apt-repository- Đã giải quyết Ubuntu / Kali

– Quảng cáo –

Nếu bạn vừa cài đặt Ubuntu, Debian, Kali hoặc hệ điều hành Linux tương tự khác đang sử dụng trình quản lý gói apt để thêm kho lưu trữ, thì giải pháp này là dành cho bạn.

Nhiều khi chúng tôi muốn sử dụng lệnh add-apt-repository để thêm một số kho lưu trữ PPA phần mềm trên các hệ thống Ubuntu hoặc Debian của chúng tôi, chúng tôi có thể nhận được một lệnh lỗi không tìm thấy được.

Lỗi này xuất hiện do hệ thống Linux dựa trên Debian mà bạn đang sử dụng không có các gói phần mềm được hỗ trợ mà lệnh add-apt-repository cần. Vì vậy, trước khi sử dụng nó để thêm bất kỳ repo nào, chúng ta phải cài đặt các thuộc tính phần mềm phổ biến cho nó,

Không tìm thấy lệnh Add-apt-repository

Đối với tất cả các hệ thống Ubuntu & Debian Linux mới nhất như Ubuntu 19.10 / 19.04, 18.10 / 18.04, 17.04, 16.04; Kali Linux; Linux Mint và Debian sử dụng lệnh dưới đây:

sudo apt-get install phần mềm-property-common

Đầu ra cho lệnh trên: Nhấn Y để tiếp tục cài đặt các gói.

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]

Đối với các phiên bản Ubuntu và Debian cũ hơn, hãy sử dụng lệnh này:

sudo apt-get cài đặt python-software-property