AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 591528
Accepted
Vitor Mazuco
Vitor Mazuco
Asked: 2015-03-02 10:53:09 +0800 CST2015-03-02 10:53:09 +0800 CST 2015-03-02 10:53:09 +0800 CST

为 Asterisk 11 安装 sqlite3 失败

  • 772

我正在尝试在 Ubuntu Server 14.04 32 位中安装 Asterisk 11,但我无法安装 sqlite3,因为我在这台机器上使用 Asterisk 11。

请看下面的消息:

ubuntu@asterisk-ubuntu:/usr/src/asterisk-11.16.0$ LANG=C sudo apt-get install sqlite3 libsqlite3-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
sqlite3-doc 
The following NEW packages will be installed:
libsqlite3-dev sqlite3
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 471 kB of archives.
After this operation, 1558 kB of additional disk space will be used.    
Err http://archive.ubuntu.com/ubuntu/ trusty/main libsqlite3-dev i386 3.8.2-1ubuntu2
Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ trusty/main sqlite3 i386 3.8.2-1ubuntu2
Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/sqlite3/libsqlite3-dev_3.8.2-1ubuntu2_i386.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/sqlite3/sqlite3_3.8.2-1ubuntu2_i386.deb  Could not resolve 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我如何为 Ubuntu 安装这个 sqlite3?

非常感谢

  ubuntu@asterisk-ubuntu:/usr/src/asterisk-11.16.0$ sudo ping 91.189.91.23
  PING 91.189.91.23 (91.189.91.23) 56(84) bytes of data.
  64 bytes from 91.189.91.23: icmp_seq=1 ttl=53 time=146 ms
  64 bytes from 91.189.91.23: icmp_seq=2 ttl=53 time=211 ms
  64 bytes from 91.189.91.23: icmp_seq=3 ttl=53 time=190 ms
  64 bytes from 91.189.91.23: icmp_seq=4 ttl=53 time=145 ms
  ^C
  --- 91.189.91.23 ping statistics ---
  4 packets transmitted, 4 received, 0% packet loss, time 3003ms
  rtt min/avg/max/mdev = 145.907/173.793/211.788/28.546 ms
14.04
  • 1 1 个回答
  • 452 Views

1 个回答

  • Voted
  1. Best Answer
    heemayl
    2015-03-02T11:40:34+08:002015-03-02T11:40:34+08:00

    您遇到 DNS 问题,名称解析失败。您没有设置有效的名称服务器地址,或者您的名称服务器出现问题导致名称解析失败。

    您可以运行以下命令临时将 Google 的免费名称服务器设置为 DNS 服务器,但强烈建议您使用您的 ISP 提供的 DNS 服务器地址。

    printf "\nnameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf
    

    这会将“名称服务器 8.8.8.8”添加到/etc/resov.conf. 这是暂时的,即不会在重启后继续存在,您可以按照此永久设置 DNS 服务器地址。

    • 1

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve