jjzjj

ruby - apt Recipe 不会安装在我的 Recipe 中

我正在尝试使用Vagrant创建我的第一个ChefRecipe,但在第一步就遇到了问题。我的Recipe的第一行是:include_recipe"apt"但是当我尝试vagrantprovision时,出现以下错误:==>default:[2014-09-21T07:15:42+00:00]WARN:MissingCookbookDependency:==>default:Recipe`apt`isnotintherun_list,andcookbook'apt'==>default:isnotadependencyofanycookbookintherun_list.Toloadth

ruby-on-rails - 我可以在 Ubuntu 上使用 apt-get 安装 gems 吗?

我是Ruby新手,刚开始接触。Ruby教程说我应该从这里获取打包系统:http://rubyforge.org/frs/?group_id=126我在UbuntuLinux上。该页面有一个用于下载的.tar和.gem选项。我应该下载哪个?此外,gems是否与Javajar完全相似?如果我可以根据需要一个一个地下载gem,为什么还需要gem打包系统? 最佳答案 Ubuntu现在有ruby​​gems作为一个包对于Ubuntu12:sudoapt-getinstallrubygems对于Ubuntu14.04:sudoapt-getin

Ruby RVM apt-get更新错误

尝试使用RVM安装任何东西时出现以下错误:Searchingforbinaryrubies,thismighttakesometime.Foundremotefilehttps://rvm.io/binaries/ubuntu/13.04/x86_64/ruby-2.1.1.tar.bz2Checkingrequirementsforubuntu.Installingrequirementsforubuntu.Updatingsystem..kshitizpasswordrequiredfor'apt-get--quiet--yesupdate':...................

windows - Windows 上的 Ubuntu 上的 Bash 无法使用 `sudo apt-get install <packagename>`

我很高兴能在Windows上使用bash,但很快就遇到了问题。我正在尝试安装build-essential,但我遇到了依赖性问题。在尝试使用sudoapt-getinstall-f解决问题时,我遇到了另一个没有多大意义的错误。我试过更新和升级,但也没有用。Fbarzevp@UK-LT-8356:~$sudoapt-getinstallbuild-essentialReadingpackagelists...DoneBuildingdependencytreeReadingstateinformation...Donebuild-essentialisalreadythenewestve

node.js - apt-get 在 Dockerfile 中不工作

回答:我仍然不知道到底出了什么问题,但是在我重新启动docker并再次运行它之后(相同的dockerfile,相同的一切),它工作正常。我在Windows上使用Docker,我的Dockerfile是FROMubuntu:15.04COPY./srcRUNapt-getupdateRUNapt-getinstall-ynodejs...etc但是当我尝试构建我得到的图像时WARN[0001]SECURITYWARNING:YouarebuildingaDockerimagefromWindowsagainstaLinuxDockerhost.Allfilesanddirectories

ubuntu - 我想通过 apt-get 在 ubuntu 12.04 中安装 php 5.3.9 - 我应该添加什么存储库?

关闭。这个问题是off-topic.它目前不接受答案。想改进这个问题吗?Updatethequestion所以它是on-topic用于堆栈溢出。关闭10年前。Improvethisquestion我想通过apt-get在ubuntu12.04中安装php5.3.9。apt-cacheshowphp5-fpm仅列出5.3.10-1ubuntu3.1和5.3.10-1ubuntu3。我试图避免5.3.10(https://bugs.php.net/bug.php?id=61045&edit=1)中的一个严重错误。是否有一个存储库可以让我在ubuntu12.04LTS中安装php5.3.9?

php - Laravel Homestead 'apt-get update' 给出一些 404

Homestead2.1.7(框0.4.0)预配置源列表是否存在一些错误配置?附言。如果Homestead的下一个版本在配置文件中包含用于安装一些预配置的附加包(如MSSQL)的选项,我们将不胜感激。是的,不是每个人都需要它们,但是对于客户项目,通常需要比#laragarden中发现的更多奇特的包vagrant@homestead:~$sudoapt-getupdateHithttp://apt.postgresql.orgtrusty-pgdgInReleaseIgnhttp://ppa.launchpad.nettrustyInReleaseIgnhttp://us.archive

php - Aramex 汇率计算器 APT 返回错误代码 "ISE01"

Aramex汇率计算器API返回错误代码ISE01和以下错误消息:InternalServerErrorhasoccurredwhilegettingcalculatingrate`whilerequesting这个错误的原因是什么?以下是Aramex费率计算器API的示例代码:array('AccountCountryCode'=>'JO','AccountEntity'=>'AMM','AccountNumber'=>'00000','AccountPin'=>'000000','UserName'=>'user@company.com','Password'=>'00000000

为什么在这种情况下apt process()调用两次

我正在尝试学习如何使用注释处理器,但是我遇到了一个问题process()方法称为两次。src--com/ilumer/ExtractInterface(annotation)InterfaceExtractorProcessor(processor)Multiplier(.java)ExtractInterface@Retention(RetentionPolicy.CLASS)@Target(ElementType.TYPE)public@interfaceExtractInterface{Stringvalue();}InterfaceExtractorProcessor@Supporte

java - apt 安装无法找到可执行文件

我在堆栈溢出上阅读了一些与此类似的其他线程,但我一直无法解决我的问题。我正在尝试安装一个包。aptinstalllibgnutls28-dev但是,我收到以下错误。Unabletolocateanexecutableat"/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/apt"(-1)其他人已经能够通过在终端中设置javahome环境变量来解决这个错误。exportJAVA_HOME=/Library/Java/Home我已经试过了,然后再次运行aptinstall,但收到同样的错误:Unablet