apt

Auto yes to the License Agreement on sudo apt-get -y install oracle-java7-installer

末鹿安然 提交于 2019-12-18 10:01:37
问题 The Oracle Java package for Ubuntu interactively asks about the License Agreement. So I have to say 'OK' and then 'yes' every time, but I'd like to automate it. What I do is this: sudo add-apt-repository -y ppa:webupd8team/java sudo apt-get update sudo apt-get -y install oracle-java7-installer Is there a simple way to automate the agreement process without using expect? 回答1: try this out: sudo add-apt-repository -y ppa:webupd8team/java sudo apt-get update echo debconf shared/accepted-oracle

Disable prompts while installing a Debian package

China☆狼群 提交于 2019-12-18 07:07:25
问题 How can i disable totally the prompts that appear while installing a Debian package, i've used all the options that i've found but there are some packages that are still prompting. I'm using this command: apt-get -y --allow-unauthenticated --force-yes -o DPkg::Options::="--force-overwrite" -o DPkg::Options::="--force-confdef" install x11-common Why the x11-common package is still prompting? how can i get rid of these prompts? Thanks in advance --Victor 回答1: You don't provide any details about

Linux系统下Docker的安装与卸载

南笙酒味 提交于 2019-12-16 08:42:43
环境说明 1.Ubuntu: 18.04.2 LTS (GNU/Linux 4.15.0-52-generic x86_64) 卸载旧版本 安装新的Docker之前,最好卸载掉旧版本的Docker。旧版本的Docker称为 docker , docker.io ,或者 docker-engine ,可以使用下面的命令卸载: $ sudo apt-get remove docker docker.io docker-engine 当前(2019-12-09)的docker称为Docker-Engine Community 即docker-ce。 使用APT安装 如果是在 新主机上首次 安装docker,那么需要先设置docker仓库,以后就可以直接从仓库安装和更新docker。 设置仓库 1.更新软件包列表 $ sudo apt-get update 2.安装https依赖包 为了使apt可以通过https协议来使用仓库,所以先安装使用https所需要的依赖包。 apt-transport-https , ca-certificates , curl , gnupg-agent , software-properties-common $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \

Ubuntu启动选项修复(一键修复)(GRUB&GRUB2)

点点圈 提交于 2019-12-15 22:23:09
2019.12.亲测有效 WIN7&Ubuntu双系统启动引导出现问题,选择启动系统后出现 GRUB> 无法进入系统。 准备好一个安装Ubuntu的LIVE_CD(即Ubuntu安装启动盘),之后进入安装界面后选择进入试用选项。等待进入系统后,打开终端,输入 sudo apt-add-repository ppa:yannubuntu/boot-repair 之后 执行 sudo apt update sudo apt install boot-repair sudo boot-repair 出现下图画面 选择第一项推荐修复 来源: CSDN 作者: 怀旧诚子 链接: https://blog.csdn.net/mazhongguang/article/details/103544307

E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用) E: 无法对目录 /var/lib/apt/lists/ 加锁 #

假如想象 提交于 2019-12-14 09:24:35
E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用) E: 无法对目录 /var/lib/apt/lists/ 加锁 sudo rm /var/lib/apt/lists/lock 来源: CSDN 作者: qq_37609020 链接: https://blog.csdn.net/qq_37609020/article/details/103504964

Installing Debian 8 packages & dependencies to a specified fs directory

て烟熏妆下的殇ゞ 提交于 2019-12-14 03:29:30
问题 I am new to Debian 8, and still very much a Linux beginner. I am currently running Debian 8 Oracle VM Virtualbox in Windows 10, for reference. For a project I am working on, my task is installing Debian 8 packages from the source package to a specified rootfs folder. After getting the source files (.tar.gz, .diff.gz, .dsc) and extracting them, I run: dpkg-source -x <package>.dsc Which extracts the source to the working directory. The issue I'm having is generating the .deb files from the

MobaXterm apt-get permanently install packages

心已入冬 提交于 2019-12-13 10:37:35
问题 I am using MobaXterm 10.8 portable. Whenever I install any package with $ apt-get install nano I can use the package for the whole MobaXterm session. But these packages vanish when closing MobaXterm. On the other hand, plugins are persistent. Is there any way to make apt-get packages also permanent? 回答1: The solution is setting a specific Settings -> General -> Persistent root (/) directory , instead of the default < Temp > : 来源: https://stackoverflow.com/questions/51489451/mobaxterm-apt-get

Updating SOCKS proxy via apt.conf doesn't update Network Manager>>Proxy section

本秂侑毒 提交于 2019-12-13 08:48:25
问题 Os: Ubuntu 16.10 What I'm trying to do: I've got external socks v5 server. I want to *send all local WEB traffic to socks server by doing this: ssh -D 1337 -f -C -q -N admin@socks_server_ip; #Connection no issues here ps aux | grep 1337 # I see PID related to this connection, no issues here as well Update /etc/apt/apt.conf as: Acquire::socks::proxy "socks://user:pass@host:port/"; #No issues in updating apt.conf as well Problem: When I'm done succesfully editing apt.conf file, I should be able

Install spotify-client on Ubuntu using puppet via Apt module

柔情痞子 提交于 2019-12-13 06:47:54
问题 What puppet code do I need to install the spotify-client on Ubuntu using puppet's Apt module? The spotify installation instructions are: Add the Spotify repository signing key to be able to verify downloaded packages sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 Add the Spotify repository echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list Update list of available packages sudo

Is there a Maven plugin to fetch an rpm

风格不统一 提交于 2019-12-12 10:14:50
问题 As part of my current procedure, I have to do a Linux package fetch, followed by a Maven build. Is there a Maven plugin to fetch a Linux package ( rpm -i xxx or apt-get install xxx )? maven-exec-plugin enables this. but is there a more specialized plugin that wraps data on top? Note : - maven-rpm-plugin and maven-apt-plugin seem to allow you to create rpm packages, not to fetch them 来源: https://stackoverflow.com/questions/18554908/is-there-a-maven-plugin-to-fetch-an-rpm