Hướng dẫn e: unable to locate package php5-dev - e: không thể định vị gói php5-dev

Tôi cần cài đặt một số gói để chuẩn bị không gian làm việc cho một dự án trong hệ điều hành Debian 9 chạy trong VB. Tôi có hướng dẫn:

----------------------------------------------------------------------
The following Debian 8 packages are required to run [X-Product]:

sudo apt-get install exim4 ntp pwgen curl php5-dev php-pear pkg-config nmap libzmq3 libzmq3-dev libapache2-mod-php5 apache2 percona-server-server-5.6 php5-cli php5-mysql php5-curl php5-intl daemontools-run oracle-java8-installer ant ruby-compass libtool-bin
----------------------------------------------------------------------

Khi tôi chạy lệnh, tôi nhận được ngăn xếp đầu cuối sau,

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl

Tôi đã thực hiện một số nghiên cứu trên internet, tiếp theo làm như sau,

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Nó không giúp tôi chút nào. Tôi cần sửa cái gì để khắc phục điều này? Tôi có rất ít kiến ​​thức về Debian nếu bạn hỏi

Lưu ý: Tôi đã làm theo các hướng dẫn trong câu trả lời được cung cấp, vấn đề vẫn chưa được giải quyết như tôi không thể thấy php version

Khi tôi chạy lệnh của

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl
0

Nó in trong thiết bị đầu cuối,

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php5.6-json' for regex 'php5.6'
Note, selecting 'php5.6-common' for regex 'php5.6'
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Để tìm phiên bản

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl
1,

sudo php -v

Nó in trong thiết bị đầu cuối,

sudo: php: command not found

Để tìm phiên bản

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl
1,

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl
2

Thêm thông tin như nếu tôi chạy nó

Nhưng, lệnh

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl
3 đã thành công

Lệnh

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl
4 trả về giá trị,

dh-php php-cli php-common php-dev php-gd php-pear php-xml php7.0-cli php7.0-common php7.0-dev php7.0-gd php7.0-json php7.0-opcache php7.0-readline php7.0-xml pkg-php-tools

Điều đó có nghĩa là tôi đã cài đặt HVAE PHP7 và chặn các hoạt động khác?

 Reading package lists... Done
 Building dependency tree       
 Reading state information... Done
 E: Unable to locate package php5-dev

Tôi không thể cài đặt gói PHP5-DEV trong Ubuntu 12.10. Tôi đang nhận được những điều sau đây trên

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php5-dev
E: Unable to locate package libzmq3
E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-intl
5:Jun 5, 2013 at 9:09

Đã hỏi ngày 5 tháng 6 năm 2013 lúc 9:09

Hướng dẫn e: unable to locate package php5-dev - e: không thể định vị gói php5-dev

Tôi vừa thử cài đặt gói PHP5-DEV trong Ubuntu 12.10 và tôi không có vấn đề gì. Nó đã cài đặt tốt.

Hướng dẫn e: unable to locate package php5-dev - e: không thể định vị gói php5-dev
Hướng dẫn e: unable to locate package php5-dev - e: không thể định vị gói php5-dev

Tôi bao gồm hình ảnh của các nguồn phần mềm của tôi, để bạn có thể so sánh với của bạn.

sudo apt-get update && sudo apt-get upgrade

Tôi cũng đề nghị bạn chỉ cần nhấn Ctrl+Alt+T trên bàn phím của bạn để mở thiết bị đầu cuối. Khi mở, hãy chạy (các) lệnh bên dưới trước khi cài đặt:Jun 5, 2013 at 9:41

Đã trả lời ngày 5 tháng 6 năm 2013 lúc 9:41Mitch

Mitch ♦ Mitch23 gold badges205 silver badges265 bronze badges

1

105K23 Huy hiệu vàng205 Huy hiệu bạc265 Huy hiệu Đồng

Tôi đã gặp lỗi tương tự khi cài đặt PHP hoặc bất kỳ phần mềm nào khác. Tôi đã thay đổi máy chủ cập nhật và sau đó nó bắt đầu hoạt động.

Bạn có thể thay đổi máy chủ cập nhật bạn đang sử dụng bằng cách truy cập Cài đặt hệ thống> Phần mềm & Cập nhật, sau đó thay đổi dòng "Tải xuống từ" sang máy chủ khác.

jkt123

3.35021 Huy hiệu bạc24 Huy hiệu đồng21 silver badges24 bronze badges

Đã trả lời ngày 29 tháng 4 năm 2014 lúc 14:18Apr 29, 2014 at 14:18