首页 文章
  • 0 votes
     answers
     views

    为特定的ubuntu版本安装特定版本的apt包

    我想在docker容器中安装包 foo version 1234 . 我更喜欢这个到最新版本,因为它总是以相同的方式工作 . 所以我的Dockerfile有这个: RUN apt-get update && apt-get install -y foo=1234 但基本图像是mongodb:4.0.2,它在Ubuntu xenial上分层 . 当我构建映像时,apt安装失败...
  • 4 votes
     answers
     views

    如何在ansible中处理未经验证的apt安装

    从我们自己的repo安装apt软件包时,我在CLI上获得以下内容: Install these packages without verification? [y/N] 问题是,如何使用ansible成功安装这些软件包? 即使使用force选项,ansible也无法安装包 . 我正在使用的命令是: - apt: name=coupons-graphite dpkg_options='force'...
  • 9 votes
     answers
     views

    如何在Debian 8 Jessie上安装gstreamer0.10-ffmpeg(无安装候选者)

    在干净的Debian 8安装上,我必须安装一些gstreamer-plugins . 虽然大多数已经安装或可以通过apt-get轻松安装,但gstreamer0.10-ffmpeg无法安装: sudo apt-get install gstreamer0.10-ffmpeg 抛出以下警告: 包gstreamer0.10-ffmpeg不可用,但由另一个包引用 . 这可能意味着包丢失,已被淘汰或仅...
  • 21 votes
     answers
     views

    如何让apt-get接受来自Repo的无人值守的debian安装中的新配置文件

    我正在编写一个脚本,用于无人值守安装我们的Repo中的软件包,它是一个软件包,其中一个Debian标记为config . 有没有我可以传递给apt-get / aptitude的选项,以便它接受新的配置文件 . 基本上我需要一个相当于dpkg --force-confnew的apt / aptitude 在使用Y进行apt-get安装时,我需要回答以下问题 配置文件`/opt/applicati...
  • 0 votes
     answers
     views

    如何使apt-get install更喜欢本地iso的源代码? [关闭]

    如果sourcelist中有很多源代码,但我希望apt-get更喜欢本地iso的源代码,而不是远程镜像,即使远程软件包比本地iso更新,我也希望apt-get选择本地iso,我该怎么做为了让它按我想要的方式工作? 这是我的配置 /etc/apt/source.list deb文件:/// home / jack / dsk / lucid主要限制deb http:// us.archive.ub...
  • 0 votes
     answers
     views

    apt-get install of zookeeper-server抛出错误

    我想在我的ubuntu机器上安装zookeeper和zookeeper-server,这些是我做的步骤: - 添加了密钥 curl -s http://archive.cloudera.com/cdh5/ubuntu/trusty/amd64/cdh/archive.key | sudo apt-key add - 我在/etc/apt/sources.list.d/cloudera.ke...
  • -1 votes
     answers
     views

    'unmet dependencies'尝试在Linux中升级软件包时

    尝试运行时: sudo apt upgrade - 我收到以下错误: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. ...
  • 4 votes
     answers
     views

    在python中获取deb包中的conffiles列表

    我想使用python获取与deb包相关的conffiles列表 . 我正在开发一个项目,我需要知道是否修改了包安装的任何conffile所以我需要有一个包安装的conffiles列表,以便我可以使用它来查看哪个conffile已被修改 . 我试图使用python-apt library documentation,但找不到任何方法,请建议我这样做的方法 . 我知道我可以提取控制信息并读取原始的co...
  • 1 votes
     answers
     views

    无法将kubernetes-bionic main(Ubuntu 18.04)添加到apt存储库

    我正在尝试在我的Ubuntu服务器/桌面版本18.04.1上安装Kubernetes . 但是,当我想使用以下命令将kubernetes添加到apt存储库时: sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-bionic main" 我收到以下错误: Hit:1 http://security...
  • 0 votes
     answers
     views

    什么是yum中的apt-key相当于什么?

    我正在按照这里可以找到的教程在ec2实例上设置无头硒刮刀: https://krbnite.github.io/Driving-Headless-Chrome-with-Selenium-on-AWS-EC2/ 我正在使用的教程似乎假设一个ubuntu发行版,而我正在使用的ec2实例是一个aws ami . 因为apt-get不适用于我,而是我使用yum来安装东西 . 安装过程的第一步如下: wg...
  • 1 votes
     answers
     views

    Android上的chroot ubuntu 16.04上的apt-get更新失败

    我在我的Android设备上使用xenial(Ubuntu 16.04)安装了chroot(使用armhf架构) . 一切正常 . 所有本地命令和wget和curl工作正常 . 但是,apt-get失败了 . 这是问题: 1)“sudo apt-get update”给我一个错误:临时故障解析'ports.ubuntu.com'(其他程序如wget和curl可以成功访问dns名称) 我ping了服...
  • 288 votes
     answers
     views

    在没有密码提示的情况下在Ubuntu上安装MySQL

    如何编写脚本在Ubuntu上安装MySQL服务器? sudo apt-get install mysql 将安装,但它也会要求在控制台中输入密码 . 我如何以非交互方式执行此操作?也就是说,编写一个可以提供密码的脚本? #!/bin/bash sudo apt-get install mysql # To install MySQL server # How to write script f...
  • 0 votes
     answers
     views

    BeagleBone Black上的sudo apt-get更新错误

    我正在使用我的Beaglebone Black rev C并安装了最新的debian映像 . 通过连接我的笔记本电脑的以太网端口和USB端口以及我的Beaglebone,我已经深入了解它 . 我的笔记本电脑有完美的wifi工作连接到我的Beaglebone并尝试更新后,它给了我这个错误 Err:1 http://repos.rcn-ee.com/debian stretch InRelease ...
  • 6 votes
     answers
     views

    无法在mysql-apt-config [Ubuntu 14.04]中选择'OK' . 清除不起作用

    我使用的是Ubuntu 14.04(Mint) sudo dpkg --configure -a ' takes me to the package configuration of the mysql-apt-config. However, when I select the server version that I wish to receive (mysql-5.6) the termi...
  • 3 votes
     answers
     views

    如何在debian中安装apt包?

    我正在使用Debian GNU / Linux 6.0.4(挤压) . 错误地从我的操作系统中删除了所有apt文件 . 我正在尝试安装软件包“apt_0.9.7.1_amd64.deb” . 但是在安装软件包时遇到以下错误: Unpacking replacement apt ... dpkg: dependency problems prevent configuration of apt: ...
  • 23 votes
     answers
     views

    如何在ubuntu中安装“make”? [关闭]

    我正在尝试将“yum”或“apt-get”安装到我的系统“ubuntu centOS”中 . 我使用命令wget从互联网上下载了这两个程序的二进制文件 . 但是在使用命令“tar -zxvf”filename“解压缩文件后,然后配置文件”./configuring“,然后当我想使用命令”make“时,我收到以下错误”make:not found“ . 我已经搜索了一个下载“make”命令的方法,但...
  • 0 votes
     answers
     views

    如何在ubuntu18.04中安装java1.4

    我需要运行一个开源的Java软件,但是由于枚举问题而编译系统提示后,所以你可以使用java1.4来运行 . 我使用的系统是ubuntu18.04,如何在这个ubuntu中安装java1.4 .
  • 79 votes
     answers
     views

    包php5没有安装候选(Ubuntu 16.04)

    当我尝试使用以下代码在Ubuntu 16.04中安装php5时: sudo apt-get install php5 php5-mcrypt 我收到以下错误: Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not ava...

热门问题