我在安装了从PPA安装的PHP 5.4的Ubuntu 11.10服务器上。 我安装了MySQL库(php5-mysql),但想试试本地驱动程序(php5-mysqlnd),所以我运行sudo apt-get install php5-mysqlnd 。 它导致与dpkg一些错误,所以我试图删除它: $ sudo apt-get remove php5-mysqlnd Removing php5-mysqlnd … dpkg: error processing php5-mysqlnd (–remove): subprocess installed pre-removal script returned error exit status 1 Processing triggers for libapache2-mod-php5 … * Reloading web server config apache2 Errors were encountered while processing: php5-mysqlnd 当我第一次安装php5-mysqlnd时,它卸载了php5-mysql – 现在我不能重新安装,因为它试图删除php5-mysqlnd。 现在我没有办法在PHP中连接到我的MySQL服务器。 我该如何解决这个问题? 我试图强行删除php5-mysqlnd(根据debian wheezy […]
input时出现以下错误: # apt-get update W: Failed to fetch http://etc.inittab.org/~agi/debian/libapache-mod-security2/etch/Packages 404 Not Found [IP: 80.28.139.208 80] E: Some index files failed to download. They have been ignored, or old ones used instead. 有谁知道我可以解决这个问题? 操作系统:Debian 7 Wheezy Linux localhost 3.2.0-1-amd64#1 SMP星期二Jan 24 05:01:45 UTC 2012 x86_64 GNU / Linux
很多我的服务器软件是通过apt-get安装的,我想知道是否有一个小的shell脚本,我可以得到它将更新所有这些软件。 之后我还需要重新启动我的服务器或在运行此更新之前停止运行脚本? 它是如此简单: apt-get update?
假设我需要编写一个cron作业来自动安装每天的安全更新,我应该使用哪个命令来提高可靠性?
我最近开始乱搞设置ReplicaSets。 经过一些testing和玩,我想要删除MongoDB和所有的设置,并开始在所有系统上进行全新安装,以便将其设置为生产模式。 我假设sudo apt-get –purge remove mongodb mongodb-clients mongodb-server mongodb-dev mongodb-10gen其次是sudo apt-get autoremove会照顾,我可以再次开始安装。 问题是,当我进行全新安装时,启动Mongo Shell,它会自动启动备份,就好像我处于开发模式ReplicaSets一样? 我已经从/ var / lib /中删除了我的.confs和mongodb目录,但仍然无法处理它。 在安装过程中,我得到提示(Reading database … 76829 files and directories currently installed.)这些在哪里? 我做一个sudo dpkg -L mongodb-10gen并得到它没有安装? 任何build议,以帮助我避免完整的Ubuntu重新安装将是非常有益的。 预先感谢您提供的任何指导! 弥敦道
当升级debian挤到喘气时,mysql升级到mysql-server-5.5失败: # apt-get dist-upgrade -u … Setting up mysql-server-5.5 (5.5.31+dfsg-0+wheezy1) … [ ok ] Stopping MySQL database server: mysqld. … [FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed! invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing mysql-server-5.5 (–configure): subprocess installed post-installation […]
我试图从本地debian库中删除一个包。 reprepro list显示它,但reprepro remove说它没有被发现。 该文件存在于backup目录中,但不在pool目录中。 我想这意味着它不是真的吗? $ reprepro -b /opt/debrepo list qa qa|beats|amd64: beats-blt 1.2.1-rc1 $ reprepro -b /opt/debrepo remove qa beats-blt Exporting indices… Not removed as not found: beats-blt $ reprepro -b /opt/debrepo remove qa beats-blt_1.2.1-rc1 Exporting indices… Not removed as not found: beats-blt_1.2.1-rc1
想象一下当你像这样(手动)安装openssl包时的情况: wget http://openssl.org/source/openssl-1.0.1h.tar.gz tar -xvf openssl-1.0.1h.tar.gz cd openssl-1.0.1h ./config shared make depend make make test make install 现在你想从aptitude安装另一个软件包,像这样: apt-get install ca-certificates 但它表示将安装openssl(较低的版本,但具有aptitude)您已经手动安装的软件包,如何使用已经手动安装的软件包安装? 请不要照顾为什么我需要使用手动安装这个软件包而不是使用官方的软件,只是请帮我回答这个问题,谢谢。 你可以想象任何其他的软件包,如果这是你的问题。
我想apt-get更新来指挥一个脚本来引导它重新启动一个系统。 如果有更新重新启动,我希望系统运行apt-get更新。 这是为了保持一个简单的系统更新。 答案可能有点复杂,我似乎无法开始解决这个问题。 系统运行Debian Wheezy。 这是在一个用户运行脚本和rsync的默认情况下。 没有什么花哨。
Im试图在正在运行的Ubuntu 14.04上安装新软件 $ uname -r 3.13.0-45-generic 我的机器上安装了旧版本 $ dpkg –list | grep linux-image rc linux-image-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP ii linux-image-3.13.0-45-generic 3.13.0-45.74 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP ii linux-image-3.13.0-55-generic 3.13.0-55.94 amd64 Linux kernel image for version 3.13.0 on 64 […]