Articles of apt

中断apt-get升级 – 现在不会再运行

我最近在Debian 6服务器上启动了apt-get升级。 下载是永远的,所以我退出了Ctrl-C,打算改变到一个不同的镜像服务器。 但是,现在当我运行apt-get升级时,我只是得到: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 这对我来说并不合适,因为上次升级还没有完成。 我能做些什么重新运行最后的升级? 谢谢

Debian的 – apt-get – 取决于:php5-mysql,但它不会被安装

我们需要php5-mysqlnd,因此php5-mysql被删除了,现在当我们想用apt-get来安装某些东西的时候,一个软件包有未满足的依赖关系。 如何或在哪里可以编辑依赖关系来摆脱这个恼人的错误消息? 我们的服务器现在工作正常,我不想乱搞东西,并删除错误的包。 我们使用Debian 7.7(wheezy)和apt-get感谢您的帮助。 这里是输出: The following packages have unmet dependencies: psa-php5-configurator : Depends: php5-mysql but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). -mysql but it is not going to be installed

更新mysql与apt-get(Debian)时出错

我正在运行一个Debian 7(wheezy)机器,我正在使用apt-get update && apt-get upgrade来做我的正常软件包更新,除了mysql服务器外,似乎一切都已经更新了。 当我运行apt-get upgrade时,我得到了这个结果: The following packages will be upgraded: mysql-server-5.5 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 18 not fully installed or removed. Need to get 0 B/2,092 kB of archives. After this operation, 2,048 B of additional disk space will be used. Do you […]

Ubuntu 12.04 PHP 5.3到5.5更新失败

在Ubuntu 12.04服务器上我试图更新PHP 5.3到5.5这是我所做的: sudo add-apt-repository ppa:ondrej/php5 sudo apt-get update sudo apt-get install php5 不幸的是安装结束以下错误: dpkg: error processing /var/cache/apt/archives/apache2-bin_2.4.16-4+deb.sury.org~precise+4_amd64.deb (–unpack): trying to overwrite '/usr/share/man/man8/apache2.8.gz', which is also in package apache2.2-common 2.2.22-1ubuntu1.10 dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe) dpkg-deb: error: subprocess <decompress> returned error exit status 2 Processing triggers for man-db … Errors […]

apt-get升级得到中止如何恢复? (哈希总和不匹配)

我问StackOverflow,但redirect在这里。 恐怕我做了一个booboo。 在执行apt-get upgrade (队列中有大约160多个包)时,我不小心注销了,因此中途放弃升级。 现在我无法重新启动升级。 apt-get upgrade说没有升级包 apt-get update给出错误: W: Failed to fetch http://security.debian.org/dists/wheezy/updates/main/binary-armel/Packages Hash Sum mismatch W: Failed to fetch http://security.debian.org/dists/wheezy/updates/contrib/binary-armel/Packages Hash Sum mismatch W: Failed to fetch http://security.debian.org/dists/wheezy/updates/non-free/binary-armel/Packages Hash Sum mismatch [several more of these… and ending in: ] E: Some index files failed to download. They have been ignored, or old […]

postgresql安装失败与apt-get

我在AWS Ubuntu映像上运行。 在尝试设置我的机器时,我使用apt-get来添加和删除PostgreSql及其一些模块。 现在,当我运行sudo apt-get install postgresql-9.3我得到以下错误: Setting up postgresql-9.3 (9.3.10-0ubuntu0.14.04) … update-alternatives: using /usr/share/postgresql/9.3/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode * Starting PostgreSQL 9.3 database server * Error: could not exec /usr/lib/postgresql/9.3/bin/pg_ctl /usr/lib/postgresql/9.3/bin/pg_ctl start -D /var/lib/postgresql/9.3/main -s -o -c config_file="/etc/postgresql/9.3/main/postgresql.conf" : No such file or directory 唯一缺less的文件/目录是/var/lib/postgresql/9.3/main 我试过了: 添加目录 使用sudo apt-get remove postgresql-9.3并重新安装 […]

什么时候Debian服务器需要重启?

我的vServer上安装了Debian 8.3,托pipe网站和其他应用程序。 例如,我的虚拟机在主机重启节点后没有正确启动。 所以必须有一些只有在完全重新启动的情况下才能加载。 什么情况下,我必须重新启动服务器? apt-get升级 – 库更新时? apt-get upgrade – 安装新的映像时 其他原因? 或者是一个Debian服务器,你根本不需要重新启动?

apt不能validation签名,不更新,也不提取源

我在台式机上运行Debian。 因为一些错误的电缆,访问高清失败了几次,这使我的/var文件系统有些损坏。 这是一个btrfs文件系统。 所以,我把整个系统拷贝到另一个HD上,但是还是有问题的! 我不确定它们都与文件系统损坏问题有关。 sudo aptitude update Get: 1 http://ftp.us.debian.org/debian unstable InRelease [209 kB] Err http://ftp.us.debian.org/debian unstable InRelease Unknown error executing apt-key Fetched 209 kB in 2s (95.9 kB/s) Current status: 0 (-479) upgradable, 0 (-11) new. W: GPG error: http://ftp.us.debian.org/debian unstable InRelease: Unknown error executing apt-key E: The repository 'http://ftp.us.debian.org/debian unstable InRelease' is […]

我可以删除linux-image-3.2.0-4-686-pae吗?

我可以看到linux-image-3.2.0-4-686-pae作为安装包: # apt-cache policy linux-image-3.2.0-4-686-pae linux-image-3.2.0-4-686-pae: Installé : 3.2.82-1 Candidat : 3.2.82-1 Table de version : *** 3.2.82-1 0 100 /var/lib/dpkg/status 但是我正在运行的内核是: uname -a Linux igname 3.16.0-4-686-pae #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) i686 GNU/Linux 我可以删除linux-image-3.2.0-4-686-pae软件包吗? 如果是,为什么仍然安装?

GPG签署适当的存储库不能按预期工作

我们将我们自己的一些软件包作为debs存放在我们自己的仓库中。 为了build立原型,我们一直在运行“未经validation的”。 现在我们试图更正确地做事情,做整个GPG事情。 我试过的,只是为了testing运行如下: 1)用gpg-gen做个钥匙 ~$ gpg –list-keys /home/me/.gnupg/pubring.gpg ——————————– pub 4096R/BBBBB39F 2017-03-09 uid Someone Somebody <[email protected]> sub 4096R/129E9336 2017-03-09 (什么顺便说一句,那里是SUB的东西?) 2) aptly publish …这提示我为我的密钥input密钥,所以它必须在这个时候用密钥做一些事情。 3)使用gpg —export —armor > somefile.pubkey导出密钥 4)将一些file.pubkey复制到testing机器上 5)运行sudo apt-key add somefile.pubkey sudo apt-key list /etc/apt/trusted.gpg ——————– pub rsa4096 2017-03-09 [SC] E51B E216 4658 FB8B 6E42 8A09 F9BC EF4C BBBB B39F uid […]