Articles of apt

Ubuntu 10.10 apt-get

好吧,我已经有一段时间了这个问题,我已经做了大量的谷歌search,但没有任何帮助解决我的问题呢。 我尝试了一堆东西,其中包括一些东西,确保我的时间设置正确,甚至尝试不同的来源,但没有任何工作。 现在,基本上我试图用apt-get来做任何事情。 更新,安装,一切都非常缓慢,这一切都挂在[等待头]。 所以我跑了 sudo strace apt-get update 现在,这适用于一些镜像,但其他脚本挂起并循环这种types的输出 select(8, [5 6 7], [], NULL, {0, 500000}) = 0 (Timeout) gettimeofday({1303320316, 668899}, NULL) = 0 rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 99% [Waiting for headers]) = 26aders]", 26 select(8, [5 6 7], [], NULL, {0, 500000}) = 0 […]

如何在shell脚本中findapt-get更新后是否可用的升级版本

我有一个脚本,执行apt-get更新在几台服务器上,我必须找出是否有升级可用或不安排apt-get升级等… 看看文档,我不明白我该怎么做这个任务。

由于未满足的依赖关系,应用程序不能安装

我在Linode上运行Apache。 我最近转移到Lighttpd并删除Apache,现在每当我尝试安装任何应用程序,我得到以下错误。 ivineet:~# apt-get install subversion Reading package lists… Done Building dependency tree Reading state information… Done You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: libapache2-mod-php5: Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or apache2-mpm-itk but it is not going to […]

Ubuntu一次升级多个版本

我需要一个Ubuntu 11.10服务器,但由于我理解的原因,我们的主机只预装Ubuntu 10.04 LTS。 所以我决定购买一台10.04服务器,并使用Ubuntu的发行版本升级到11.10。 我预计,释放升级会让我从10.04直到11.10。 但是,在运行发行版升级之后,我结束了Ubuntu 10.10。 所以在重新启动后,我不得不再次运行它,然后升级到11.04,所以我不得不第三次运行它到11.10。 这是预期的行为还是我在这里做错了什么?

如何configurationapticron只报告安全/关键更新?

我们将尝试apticron,但我们不想知道每个可以更新的软件包 – 只有安全/关键更新。 我们如何configurationapticron来做到这一点? PS – 是的,我们订阅了Debian安全公告列表。

apache 2.4在debian上通过apt压缩

是否有像dotdeb.org这样的源代码提供Debian挤压的Apache 2.4包? 我正在寻找Apache模块。 我想从这个来源安装模块,然后通过apt的实际版本的Apache?

E:subprocess/ usr / bin / dpkg返回错误码(1)

在尝试更新Debian 6,x64上的linux-image-2.6.32-5-amd64软件包时出现错误。 Setting up linux-image-2.6.32-5-amd64 (2.6.32-41squeeze2) … Running depmod. Running update-initramfs. update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64 Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64 Searching for GRUB installation directory … found: /boot/grub Searching for default file … Generating /boot/grub/default file and setting the default boot entry to 0 entry not specified. run-parts: /etc/kernel/postinst.d/zz-update-grub […]

我怎样才能让APT“忽略”一个包?

我正在用这个内核版本运行Debian unstable的VPS: 2.6.32-274.7.1.el5.028stab095.1 我刚刚升级了我的软件包,出于某种奇怪的原因,APT希望我安装linux-image-3.2.0-3-amd64 ,这很奇怪,因为我无法修改内核,因为它是VPS。 无论如何,我尝试安装它,但正如我怀疑它没有工作: root@youmu:~# apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue […]

在Debian lenny中封装

我需要你的build议,因为我不知道我是否遇到了错误,或者我误解了一些东西。 在Debian Lenny中,我试图阻止安装两个特定的包 ,当它们被请求作为其他包的依赖时。 我使用的是与在Squeeze中成功使用的语法相同的语法,但没有成功 。 在挤压,以下按预期工作: # cat /etc/apt/preferences.d/local-no-pike.pref Package: pike7.6-core Pin: version * Pin-Priority: -1000 如果我试图安装pike7.6 ,这取决于pike7.6-core , apt和aptitude拒绝这么做。 在Lenny上,唯一的区别是在/etc/apt/preferences.d不支持“fragments”,所有的参数都必须在/etc/apt/preferences文件中。 但它不工作。 例如,如果该文件包含: Package: grub-common Pin: version * Pin-Priority: -1000 apt不阻止我安装grub ,这取决于grub-common 。 我用strace来查看文件是否正在被读取,而且是。 我被build议使用一些Debug::选项 ,但他们无助于查明问题。 我已经谷歌很多与“ lenny ”“ 防止 ”“ 包 ”“ 安装 ”“ 钉 ”之类的一些组合,但没有什么好事出来。 当然, 我读了man apt_preferences 。 我在这里错过了什么?

在My Book Live上升级错误

我的局域网上有一个WD My Book Livenetworking驱动器( http://www.wdc.com/en/products/products.aspx?id=280 )。 我可以在似乎运行Debian的networking驱动器上使用SSH: >> cat /etc/issue Debian GNU/Linux 5.0 \n \l 我尝试的第一件事是检查更新,但似乎有防止升级包的错误。 以下是我运行的升级命令的一些输出: >> apt-get update Hit http://ftp.us.debian.org squeeze Release.gpg Hit http://ftp.us.debian.org wheezy Release.gpg Hit http://ftp.us.debian.org squeeze Release Hit http://ftp.us.debian.org wheezy Release Ign http://ftp.us.debian.org squeeze/main Packages/DiffIndex Hit http://ftp.us.debian.org wheezy/main Packages/DiffIndex Hit http://ftp.us.debian.org squeeze/main Packages Reading package lists… Done >> apt-get upgrade […]