鍍金池/ 問答/PHP  Linux/ ubuntu 18.04無法定位軟件包??

ubuntu 18.04無法定位軟件包??

比如如下命令:sudo apt-get install pcre-devel
結(jié)果如下:
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關(guān)系樹
正在讀取狀態(tài)信息... 完成
E: 無法定位軟件包 pcre-devel

只要是devel的軟件包都報(bào)這個(gè)錯

按照網(wǎng)上的這些方法都不能解決:

 https://blog.csdn.net/mo3408/article/details/79934396
 https://blog.csdn.net/zhwisdom0427/article/details/72898772
 https://www.zhihu.com/question/41311332
 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
 
 求教各位??
回答
編輯回答
編輯回答
安于心

按照你提供的的安裝包信息使用apt的搜索功能

sudo apt search libpcre

我的是ubuntu16,結(jié)果如下

clisp-module-pcre/xenial 1:2.49-9ubuntu1 amd64
  clisp module that adds libpcre support

libpcre++-dev/xenial 0.9.5-6.1 amd64
  C++ wrapper class for pcre (development)

libpcre++0/precise 0.9.5-5.1 amd64
  C++ wrapper class for pcre (runtime)

libpcre++0v5/xenial 0.9.5-6.1 amd64
  C++ wrapper class for pcre (runtime)

libpcre-ocaml/xenial 7.0.4-2build1 amd64
  OCaml bindings for PCRE (runtime)

libpcre-ocaml-dev/xenial 7.0.4-2build1 amd64
  OCaml bindings for PCRE (Perl Compatible Regular Expression)

libpcre16-3/xenial 2:8.38-3.1 amd64
  Perl 5 Compatible Regular Expression Library - 16 bit runtime files

libpcre2-16-0/xenial 10.21-1 amd64
  New Perl Compatible Regular Expression Library - 16 bit runtime files

libpcre2-32-0/xenial 10.21-1 amd64
  New Perl Compatible Regular Expression Library - 32 bit runtime files

libpcre2-8-0/xenial 10.21-1 amd64
  New Perl Compatible Regular Expression Library- 8 bit runtime files

libpcre2-dbg/xenial 10.21-1 amd64
  New Perl Compatible Regular Expression Library - debug symbols

libpcre2-dev/xenial 10.21-1 amd64
  New Perl Compatible Regular Expression Library - development files

libpcre2-posix0/xenial 10.21-1 amd64
  New Perl Compatible Regular Expression Library - posix-compatible runtime files

libpcre3/xenial,now 2:8.38-3.1 amd64 [installed]
  Perl 5 Compatible Regular Expression Library - runtime files

libpcre3-dbg/xenial 2:8.38-3.1 amd64
  Perl 5 Compatible Regular Expression Library - debug symbols

libpcre3-dev/xenial 2:8.38-3.1 amd64
  Perl 5 Compatible Regular Expression Library - development files

libpcre32-3/xenial 2:8.38-3.1 amd64
  Perl 5 Compatible Regular Expression Library - 32 bit runtime files

libpcrecpp0/precise 8.12-4 amd64
  Perl 5 Compatible Regular Expression Library - C++ runtime files

libpcrecpp0v5/xenial 2:8.38-3.1 amd64
  Perl 5 Compatible Regular Expression Library - C++ runtime files

pcre2-utils/xenial 10.21-1 amd64
  New Perl Compatible Regular Expression Library - utilities

pcregrep/xenial 2:8.38-3.1 amd64
  grep utility that uses perl 5 compatible regexes.

你需要安裝的應(yīng)該是libpcre2-dev,使用

sudo apt install libpcre2-dev
2018年3月30日 18:23