Không thể định vị gói php7 curl
Xin chào, 在本地运行该php正常,但放在服务器上(ubuntu16. 04)运行时发现未能正常运行,在curl_init后php就未能继续运行,原因是在ubuntu上php不支持curl,而在win上是默认支持的,因此我们需要手动安装php-curl模块 1. 检查php是否支持curl可以写一个php并打开查看
可以在本地(win)浏览器上打开服务器上该php,如果已支持curl可以通过搜索curl,看到如下画面,则代表php已支持curl 2. 或者新建一个php
在本地(win)打开该php同样可以查看是否支持curl 安装php-curl
执行这条命令后报错了 unable to locate package php7. 0-curl
问题成功解决 Tôi đã tìm kiếm lại, nhưng không tìm thấy giải pháp cho vấn đề này chỉ dành cho Ubuntu và không có giải pháp nào khác hiệu quả. Tôi hy vọng ai đó có thể giúp tôi với vấn đề này Giải pháp tốt nhấtCó vẻ như bạn chưa thêm repo thích hợp. Thử
Giải pháp liên quanPhp – Cách cài đặt và chạy phpizeĐối với các phiên bản Debian/Ubuntu gần đây (Debian 9+ hoặc Ubuntu 16. 04+) cài đặt gói phụ thuộc Reading package lists.. Done Building dependency tree Reading state information.. Done E: Unable to locate package php7.3 E: Couldn't find any package by glob 'php7.3' E: Couldn't find any package by regex 'php7.3' E: Unable to locate package php7.3-cli E: Couldn't find any package by glob 'php7.3-cli' E: Couldn't find any package by regex 'php7.3-cli' E: Unable to locate package php7.3-cgi E: Couldn't find any package by glob 'php7.3-cgi' E: Couldn't find any package by regex 'php7.3-cgi' E: Unable to locate package php7.3-fpm E: Couldn't find any package by glob 'php7.3-fpm' E: Couldn't find any package by regex 'php7.3-fpm' E: Unable to locate package php7.3-gd E: Couldn't find any package by glob 'php7.3-gd' E: Couldn't find any package by regex 'php7.3-gd' E: Unable to locate package php7.3-mysql E: Couldn't find any package by glob 'php7.3-mysql' E: Couldn't find any package by regex 'php7.3-mysql' E: Unable to locate package php7.3-imap E: Couldn't find any package by glob 'php7.3-imap' E: Couldn't find any package by regex 'php7.3-imap' E: Unable to locate package php7.3-curl E: Couldn't find any package by glob 'php7.3-curl' E: Couldn't find any package by regex 'php7.3-curl' E: Unable to locate package php7.3-intl E: Couldn't find any package by glob 'php7.3-intl' E: Couldn't find any package by regex 'php7.3-intl' E: Unable to locate package php7.3-pspell E: Couldn't find any package by glob 'php7.3-pspell' E: Couldn't find any package by regex 'php7.3-pspell' E: Unable to locate package php7.3-recode E: Couldn't find any package by glob 'php7.3-recode' E: Couldn't find any package by regex 'php7.3-recode' E: Unable to locate package php7.3-sqlite3 E: Couldn't find any package by glob 'php7.3-sqlite3' E: Couldn't find any package by regex 'php7.3-sqlite3' E: Unable to locate package php7.3-tidy E: Couldn't find any package by glob 'php7.3-tidy' E: Couldn't find any package by regex 'php7.3-tidy' E: Unable to locate package php7.3-xmlrpc E: Couldn't find any package by glob 'php7.3-xmlrpc' E: Couldn't find any package by regex 'php7.3-xmlrpc' E: Unable to locate package php7.3-xsl E: Couldn't find any package by glob 'php7.3-xsl' E: Couldn't find any package by regex 'php7.3-xsl' E: Unable to locate package php7.3-zip E: Couldn't find any package by glob 'php7.3-zip' E: Couldn't find any package by regex 'php7.3-zip' E: Unable to locate package php7.3-mbstring E: Couldn't find any package by glob 'php7.3-mbstring' E: Couldn't find any package by regex 'php7.3-mbstring' E: Unable to locate package php7.3-soap E: Couldn't find any package by glob 'php7.3-soap' E: Couldn't find any package by regex 'php7.3-soap' E: Unable to locate package php7.3-opcache E: Couldn't find any package by glob 'php7.3-opcache' E: Couldn't find any package by regex 'php7.3-opcache' E: Unable to locate package php7.3-common E: Couldn't find any package by glob 'php7.3-common' E: Couldn't find any package by regex 'php7.3-common' E: Unable to locate package php7.3-json E: Couldn't find any package by glob 'php7.3-json' E: Couldn't find any package by regex 'php7.3-json' E: Unable to locate package php7.3-readline E: Couldn't find any package by glob 'php7.3-readline' E: Couldn't find any package by regex 'php7.3-readline' E: Unable to locate package php7.3-xml E: Couldn't find any package by glob 'php7.3-xml' E: Couldn't find any package by regex 'php7.3-xml'3, gói này sẽ tự động cài đặt phiên bản chính xác của 0 cho bản phân phối của bạn________số 8Các phiên bản cũ hơn của Debian/UbuntuĐối với PHP 5, nó nằm trong gói php5-dev
Đối với PHP7. x (từ nhận xét của rahilwazir) Reading package lists.. Done Building dependency tree Reading state information.. Done E: Unable to locate package php7.3 E: Couldn't find any package by glob 'php7.3' E: Couldn't find any package by regex 'php7.3' E: Unable to locate package php7.3-cli E: Couldn't find any package by glob 'php7.3-cli' E: Couldn't find any package by regex 'php7.3-cli' E: Unable to locate package php7.3-cgi E: Couldn't find any package by glob 'php7.3-cgi' E: Couldn't find any package by regex 'php7.3-cgi' E: Unable to locate package php7.3-fpm E: Couldn't find any package by glob 'php7.3-fpm' E: Couldn't find any package by regex 'php7.3-fpm' E: Unable to locate package php7.3-gd E: Couldn't find any package by glob 'php7.3-gd' E: Couldn't find any package by regex 'php7.3-gd' E: Unable to locate package php7.3-mysql E: Couldn't find any package by glob 'php7.3-mysql' E: Couldn't find any package by regex 'php7.3-mysql' E: Unable to locate package php7.3-imap E: Couldn't find any package by glob 'php7.3-imap' E: Couldn't find any package by regex 'php7.3-imap' E: Unable to locate package php7.3-curl E: Couldn't find any package by glob 'php7.3-curl' E: Couldn't find any package by regex 'php7.3-curl' E: Unable to locate package php7.3-intl E: Couldn't find any package by glob 'php7.3-intl' E: Couldn't find any package by regex 'php7.3-intl' E: Unable to locate package php7.3-pspell E: Couldn't find any package by glob 'php7.3-pspell' E: Couldn't find any package by regex 'php7.3-pspell' E: Unable to locate package php7.3-recode E: Couldn't find any package by glob 'php7.3-recode' E: Couldn't find any package by regex 'php7.3-recode' E: Unable to locate package php7.3-sqlite3 E: Couldn't find any package by glob 'php7.3-sqlite3' E: Couldn't find any package by regex 'php7.3-sqlite3' E: Unable to locate package php7.3-tidy E: Couldn't find any package by glob 'php7.3-tidy' E: Couldn't find any package by regex 'php7.3-tidy' E: Unable to locate package php7.3-xmlrpc E: Couldn't find any package by glob 'php7.3-xmlrpc' E: Couldn't find any package by regex 'php7.3-xmlrpc' E: Unable to locate package php7.3-xsl E: Couldn't find any package by glob 'php7.3-xsl' E: Couldn't find any package by regex 'php7.3-xsl' E: Unable to locate package php7.3-zip E: Couldn't find any package by glob 'php7.3-zip' E: Couldn't find any package by regex 'php7.3-zip' E: Unable to locate package php7.3-mbstring E: Couldn't find any package by glob 'php7.3-mbstring' E: Couldn't find any package by regex 'php7.3-mbstring' E: Unable to locate package php7.3-soap E: Couldn't find any package by glob 'php7.3-soap' E: Couldn't find any package by regex 'php7.3-soap' E: Unable to locate package php7.3-opcache E: Couldn't find any package by glob 'php7.3-opcache' E: Couldn't find any package by regex 'php7.3-opcache' E: Unable to locate package php7.3-common E: Couldn't find any package by glob 'php7.3-common' E: Couldn't find any package by regex 'php7.3-common' E: Unable to locate package php7.3-json E: Couldn't find any package by glob 'php7.3-json' E: Couldn't find any package by regex 'php7.3-json' E: Unable to locate package php7.3-readline E: Couldn't find any package by glob 'php7.3-readline' E: Couldn't find any package by regex 'php7.3-readline' E: Unable to locate package php7.3-xml E: Couldn't find any package by glob 'php7.3-xml' E: Couldn't find any package by regex 'php7.3-xml'0 RHEL/CentOS/yumReading package lists.. Done Building dependency tree Reading state information.. Done E: Unable to locate package php7.3 E: Couldn't find any package by glob 'php7.3' E: Couldn't find any package by regex 'php7.3' E: Unable to locate package php7.3-cli E: Couldn't find any package by glob 'php7.3-cli' E: Couldn't find any package by regex 'php7.3-cli' E: Unable to locate package php7.3-cgi E: Couldn't find any package by glob 'php7.3-cgi' E: Couldn't find any package by regex 'php7.3-cgi' E: Unable to locate package php7.3-fpm E: Couldn't find any package by glob 'php7.3-fpm' E: Couldn't find any package by regex 'php7.3-fpm' E: Unable to locate package php7.3-gd E: Couldn't find any package by glob 'php7.3-gd' E: Couldn't find any package by regex 'php7.3-gd' E: Unable to locate package php7.3-mysql E: Couldn't find any package by glob 'php7.3-mysql' E: Couldn't find any package by regex 'php7.3-mysql' E: Unable to locate package php7.3-imap E: Couldn't find any package by glob 'php7.3-imap' E: Couldn't find any package by regex 'php7.3-imap' E: Unable to locate package php7.3-curl E: Couldn't find any package by glob 'php7.3-curl' E: Couldn't find any package by regex 'php7.3-curl' E: Unable to locate package php7.3-intl E: Couldn't find any package by glob 'php7.3-intl' E: Couldn't find any package by regex 'php7.3-intl' E: Unable to locate package php7.3-pspell E: Couldn't find any package by glob 'php7.3-pspell' E: Couldn't find any package by regex 'php7.3-pspell' E: Unable to locate package php7.3-recode E: Couldn't find any package by glob 'php7.3-recode' E: Couldn't find any package by regex 'php7.3-recode' E: Unable to locate package php7.3-sqlite3 E: Couldn't find any package by glob 'php7.3-sqlite3' E: Couldn't find any package by regex 'php7.3-sqlite3' E: Unable to locate package php7.3-tidy E: Couldn't find any package by glob 'php7.3-tidy' E: Couldn't find any package by regex 'php7.3-tidy' E: Unable to locate package php7.3-xmlrpc E: Couldn't find any package by glob 'php7.3-xmlrpc' E: Couldn't find any package by regex 'php7.3-xmlrpc' E: Unable to locate package php7.3-xsl E: Couldn't find any package by glob 'php7.3-xsl' E: Couldn't find any package by regex 'php7.3-xsl' E: Unable to locate package php7.3-zip E: Couldn't find any package by glob 'php7.3-zip' E: Couldn't find any package by regex 'php7.3-zip' E: Unable to locate package php7.3-mbstring E: Couldn't find any package by glob 'php7.3-mbstring' E: Couldn't find any package by regex 'php7.3-mbstring' E: Unable to locate package php7.3-soap E: Couldn't find any package by glob 'php7.3-soap' E: Couldn't find any package by regex 'php7.3-soap' E: Unable to locate package php7.3-opcache E: Couldn't find any package by glob 'php7.3-opcache' E: Couldn't find any package by regex 'php7.3-opcache' E: Unable to locate package php7.3-common E: Couldn't find any package by glob 'php7.3-common' E: Couldn't find any package by regex 'php7.3-common' E: Unable to locate package php7.3-json E: Couldn't find any package by glob 'php7.3-json' E: Couldn't find any package by regex 'php7.3-json' E: Unable to locate package php7.3-readline E: Couldn't find any package by glob 'php7.3-readline' E: Couldn't find any package by regex 'php7.3-readline' E: Unable to locate package php7.3-xml E: Couldn't find any package by glob 'php7.3-xml' E: Couldn't find any package by regex 'php7.3-xml'1 Php – lỗi cURL 60. chứng chỉ SSL. không thể lấy chứng chỉ nhà phát hành địa phươngGiải pháp hoạt động giả định trên Windows của bạn bằng XAMPP
Reading package lists.. Done Building dependency tree Reading state information.. Done E: Unable to locate package php7.3 E: Couldn't find any package by glob 'php7.3' E: Couldn't find any package by regex 'php7.3' E: Unable to locate package php7.3-cli E: Couldn't find any package by glob 'php7.3-cli' E: Couldn't find any package by regex 'php7.3-cli' E: Unable to locate package php7.3-cgi E: Couldn't find any package by glob 'php7.3-cgi' E: Couldn't find any package by regex 'php7.3-cgi' E: Unable to locate package php7.3-fpm E: Couldn't find any package by glob 'php7.3-fpm' E: Couldn't find any package by regex 'php7.3-fpm' E: Unable to locate package php7.3-gd E: Couldn't find any package by glob 'php7.3-gd' E: Couldn't find any package by regex 'php7.3-gd' E: Unable to locate package php7.3-mysql E: Couldn't find any package by glob 'php7.3-mysql' E: Couldn't find any package by regex 'php7.3-mysql' E: Unable to locate package php7.3-imap E: Couldn't find any package by glob 'php7.3-imap' E: Couldn't find any package by regex 'php7.3-imap' E: Unable to locate package php7.3-curl E: Couldn't find any package by glob 'php7.3-curl' E: Couldn't find any package by regex 'php7.3-curl' E: Unable to locate package php7.3-intl E: Couldn't find any package by glob 'php7.3-intl' E: Couldn't find any package by regex 'php7.3-intl' E: Unable to locate package php7.3-pspell E: Couldn't find any package by glob 'php7.3-pspell' E: Couldn't find any package by regex 'php7.3-pspell' E: Unable to locate package php7.3-recode E: Couldn't find any package by glob 'php7.3-recode' E: Couldn't find any package by regex 'php7.3-recode' E: Unable to locate package php7.3-sqlite3 E: Couldn't find any package by glob 'php7.3-sqlite3' E: Couldn't find any package by regex 'php7.3-sqlite3' E: Unable to locate package php7.3-tidy E: Couldn't find any package by glob 'php7.3-tidy' E: Couldn't find any package by regex 'php7.3-tidy' E: Unable to locate package php7.3-xmlrpc E: Couldn't find any package by glob 'php7.3-xmlrpc' E: Couldn't find any package by regex 'php7.3-xmlrpc' E: Unable to locate package php7.3-xsl E: Couldn't find any package by glob 'php7.3-xsl' E: Couldn't find any package by regex 'php7.3-xsl' E: Unable to locate package php7.3-zip E: Couldn't find any package by glob 'php7.3-zip' E: Couldn't find any package by regex 'php7.3-zip' E: Unable to locate package php7.3-mbstring E: Couldn't find any package by glob 'php7.3-mbstring' E: Couldn't find any package by regex 'php7.3-mbstring' E: Unable to locate package php7.3-soap E: Couldn't find any package by glob 'php7.3-soap' E: Couldn't find any package by regex 'php7.3-soap' E: Unable to locate package php7.3-opcache E: Couldn't find any package by glob 'php7.3-opcache' E: Couldn't find any package by regex 'php7.3-opcache' E: Unable to locate package php7.3-common E: Couldn't find any package by glob 'php7.3-common' E: Couldn't find any package by regex 'php7.3-common' E: Unable to locate package php7.3-json E: Couldn't find any package by glob 'php7.3-json' E: Couldn't find any package by regex 'php7.3-json' E: Unable to locate package php7.3-readline E: Couldn't find any package by glob 'php7.3-readline' E: Couldn't find any package by regex 'php7.3-readline' E: Unable to locate package php7.3-xml E: Couldn't find any package by glob 'php7.3-xml' E: Couldn't find any package by regex 'php7.3-xml'2
(Tài liệu tham khảo. https. //laracast. com/discuss/channels/General-discussion/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-cert) |