Php7 4 cli Phụ thuộc: libpcre2-8-0 10.38 nhưng 10.34-7 sẽ được cài đặt

Tôi chỉ đang cố cập nhật hộp Kali của mình từ Kali 2019. 4 đến 2020. 2 bằng cách chạy apt update; apt upgrade, nhưng khi tôi cố gắng làm điều đó, tôi bắt đầu nhận được các lỗi bên dưới

root@kali:~# apt-get check
Reading package lists.. Done
Building dependency tree
Reading state information.. Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but it is not installed or
                            libc-dev
 clang-6.0 : Depends: libc6-dev but it is not installed
 clang-7 : Depends: libc6-dev but it is not installed
 clang-8 : Depends: libc6-dev but it is not installed
           Recommends: libomp-8-dev but it is not installed
 libbluetooth-dev : Depends: libc6-dev but it is not installed or
                             libc-dev
 libexpat1-dev : Depends: libc6-dev but it is not installed or
                          libc-dev
 libncurses-dev : Depends: libc6-dev but it is not installed or
                           libc-dev
 libstdc++-7-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
 libstdc++-8-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
 libstdc++-9-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages [or specify a solution].
root@kali:~# apt --fix-broken install
Reading package lists.. Done
Building dependency tree
Reading state information.. Done
Correcting dependencies.. failed.
The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but it is not installed or
                            libc-dev
 clang-6.0 : Depends: libc6-dev but it is not installed
 clang-7 : Depends: libc6-dev but it is not installed
 clang-8 : Depends: libc6-dev but it is not installed
           Recommends: libomp-8-dev but it is not installed
 libbluetooth-dev : Depends: libc6-dev but it is not installed or
                             libc-dev
 libexpat1-dev : Depends: libc6-dev but it is not installed or
                          libc-dev
 libncurses-dev : Depends: libc6-dev but it is not installed or
                           libc-dev
 libstdc++-7-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
 libstdc++-8-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
 libstdc++-9-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Tôi đã thử chạy dpkg --configure -a nhưng không có gì xảy ra. Cũng đã thử apt clean, apt autoclean, vẫn không thành công

Điều duy nhất trong tệp /etc/apt/sources.list của tôi là dòng sau

deb //http.kali.org/kali kali-rolling main non-free contrib

Cũng đã thử chạy

deb //http.kali.org/kali kali-rolling main non-free contrib
0 và vẫn bị lỗi như vậy

# apt dist-upgrade -y
Reading package lists.. Done
Building dependency tree
Reading state information.. Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but it is not installed or
                            libc-dev
 clang-6.0 : Depends: libc6-dev but it is not installed
 clang-7 : Depends: libc6-dev but it is not installed
 clang-8 : Depends: libc6-dev but it is not installed
           Recommends: libomp-8-dev but it is not installed
 libbluetooth-dev : Depends: libc6-dev but it is not installed or
                             libc-dev
 libexpat1-dev : Depends: libc6-dev but it is not installed or
                          libc-dev
 libncurses-dev : Depends: libc6-dev but it is not installed or
                           libc-dev
 libstdc++-7-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
 libstdc++-8-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
 libstdc++-9-dev : Depends: libc6-dev [>= 2.13-5] but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages [or specify a solution].

Tôi cũng đã thử cài đặt

deb //http.kali.org/kali kali-rolling main non-free contrib
0 và sau đó gặp lỗi tiếp theo

# apt install libc6-dev
Reading package lists.. Done
Building dependency tree
Reading state information.. Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 [= 2.30-7] but 2.29-1 is to be installed
             Depends: libc-dev-bin [= 2.30-7] but 2.29-1 is to be installed
             Depends: libcrypt-dev but it is not going to be installed
             Breaks: libgcc-7-dev [< 7.5.0-6~] but 7.4.0-13 is to be installed
             Breaks: libgcc-8-dev [< 8.4.0-2~] but 8.3.0-22 is to be installed
             Breaks: libgcc-9-dev [< 9.3.0-5~] but 9.2.1-8 is to be installed
             Breaks: python3.7 [< 3.7.7-1+b1] but 3.7.4-4 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages [or specify a solution].

Mọi lời khuyên về việc có thể giải quyết những vấn đề này sẽ được đánh giá rất cao

Cách cài đặt PHP 7. 4 mysql?

Cài đặt PHP 7. 4 trên Ubuntu 18. 04/Ubuntu16. 04 .
Bước 1. Thêm kho lưu trữ PHP PPA. Chúng tôi sẽ thêm ppa. Kho lưu trữ PPA ondrej/php có các gói xây dựng mới nhất của PHP. .
Bước 2. Cài đặt PHP 7. 4 trên Ubuntu 18. 16/04. 04. Cài đặt PHP 7. 4 trên Ubuntu 18. 19/04. 16/04. 04 sử dụng lệnh. sudo apt -y cài đặt php7. 4

Làm cách nào để cài đặt PHP 7?

Làm cách nào để cài đặt PHP 7 trên máy chủ windows theo cách thủ công? .
Giải nén các tệp PHP vào đường dẫn C. \Tệp chương trình\php. .
Đổi tên tệp php. .
Truy cập IIS >> Trình quản lý PHP và chọn Thay đổi phiên bản PHP thành 7
Thêm một trang phpinfo vào thư mục gốc của trang web của bạn
Trình duyệt cùng một trang và nó sẽ hiển thị php7

Làm cách nào để cài đặt php7 4 FPM?

Cách nâng cấp lên PHP7. .
Cài đặt PHP 7. 4. $ sudo apt cài đặt php7. 4 khung hình/phút
Cài đặt các mô-đun bổ sung. .
Cập nhật tập tin cấu hình. .
cấu hình máy chủ web. .
Thay đổi phiên bản PHP mặc định. .
5 suy nghĩ về “Làm thế nào để nâng cấp lên PHP7

Làm cách nào để cài đặt php8 0 trong Linux?

Phần kết luận. Để cài đặt PHP 8 trên Ubuntu 22. 04, trước tiên hãy cập nhật kho lưu trữ hệ thống và cài đặt các phụ thuộc cần thiết. Sau đó, thêm kho lưu trữ PHP bằng cách sử dụng “$ sudo add-apt-repository ppa. ondrej/php” và cài đặt PHP 8 bằng cách chạy lệnh “$ sudo apt install php8. 0” lệnh

Chủ Đề