为了账号安全,请及时绑定邮箱和手机立即绑定

ubuntu 18.04无法定位软件包??

ubuntu 18.04无法定位软件包??

PHP
拉丁的传说 2019-03-14 01:19:19
比如如下命令: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/ 求教各位??
查看完整描述

2 回答

?
慕姐8265434

TA贡献1813条经验 获得超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
查看完整回答
反对 回复 2019-03-18
  • 2 回答
  • 0 关注
  • 3611 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信