ubuntu 18.04无法定位软件包??

比如如下命令:sudo apt-get install pcre-devel
结果如下:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 无法定位软件包 pcre-devel

只要是devel的软件包都报这个错

按照网上的这些方法都不能解决:

 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/
 
 求教各位??
阅读 9.3k
2 个回答

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

sudo apt search libpcre

我的是ubuntu16,结果如下

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.

你需要安装的应该是libpcre2-dev,使用

sudo apt install libpcre2-dev
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题