Tag: apt

无法在virtualenv(python)中安装lxml

我无法安装lxml。 在系统中我有python-lxml包,但我需要其他…请帮助,如果可以 – 我的任务是使用virtualenv安装lxml用于虚拟环境中的开发。 我发现这个解决方案修复成功安装lxml: $ sudo apt-get install libxml2 libxml2-dev libxslt-dev build-essential python-dev $ sudo ldconfig 然后: $ source bin/activate # for activate enviroment (env) $ pip install lxml 但我有很多问题。 第一个问题是安装构建 – 必不可少的依赖 – 为什么构建必不可少? 它解决了! 谢谢! 接下来我有这个(输出): (env) $ pip install lxml … i686-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g […]

更新了libdbus

在我最近的精确安装更新中,包管理器似乎已经陷入困境。 cat /var/log/apt/history.log Start-Date: 2014-07-10 16:17:22 Upgrade: libdbus-1-3:amd64 (1.4.18-1ubuntu1.4, 1.4.18-1ubuntu1.5), libdbus-1-3:i386 (1.4.18-1ubuntu1.4, 1.4.18-1ubuntu1.5), dbus:amd64 (1.4.18-1ubuntu1.4, 1.4.18-1ubuntu1.5), flashplugin-installer:amd64 (11.2.202.378ubuntu0.12.04.1, 11.2.202.394ubuntu0.12.04.1), dbus-x11:amd64 (1.4.18-1ubuntu1.4, 1.4.18-1ubuntu1.5) Error: Sub-process /usr/bin/dpkg returned an error code (2) End-Date: 2014-07-10 16:17:41 apt-get update的输出 You might want to run ‘apt-get -f install’ to correct these. The following packages have unmet dependencies. libdbus-1-3 : Breaks: […]

包裹完整描述在哪里?

几年来我注意到Ubuntu缺少包的完整描述。 F.ex. Debian对’aptitude’有这样的描述: 包装:aptitude(0.6.8.2-1) 基于终端的包管理器 aptitude是一个包管理器,具有许多有用的function,包括:类似于mutt的语法,用于以灵活的方式匹配包,dselect-like持久性的用户操作,检索和显示大多数包的Debian更改日志的能力,以及命令行模式类似于apt-get。 aptitude也符合Y2K标准,不育肥,自然清洁和破洞。 Ubuntu的描述很糟糕: terminal-based package manager 它发生在“精确”发布之后。 “可信赖”,“乌托邦”和“生动” 也受到影响 。 包描述有什么问题?

apt-get update后的磁盘空间问题

我使用sudo apt-get update进行了系统sudo apt-get update并重新启动。 重新启动后出现错误,表明我的磁盘空间不足。 很棒,能够访问我的桌面。 我检查了space util并注意到目录中有2个非常大的文件(超过20GB): /var/lib/apt/list/partial/ za.archive.ubuntu.com_ubuntu_dists_vivid-updates_main_binary-amd64_Packages.bz2(21.2 GB) security.ubuntu.com_ubuntu_dists_vivid-security_universe_binary-amd64_Packages.bz2(21.2 GB) 我设法删除它们并重新启动系统,一切都很好。 然后我再次进行了更新,同样的问题又出现了。 这是一个错误吗? 系统信息:Ubuntu 15.04 – 每日更新

您当前的软件源中没有名为“dbmail”的软件包

dbmail在哪里? [二元包装] 大多数主要的发行版都有dbmail包。 众所周知,Ubuntu,Debian,Fedora和Gentoo都是这样做的。 请检查您的包管理器。 从控制台: thufir@dur:~$ thufir@dur:~$ aptitude search dbmail thufir@dur:~$ 有没有更好的方法来找到dbmail? 嗯,我确实看到它可用于哈代,但不是我看到的单身。 它被替换了吗? 有替代品吗? 好的,点击链接,看看: 但是,我不认为我可以安装它,我收到一条消息: Not found. There isn’t a sofware package called “dbmail” in your current software sources.

每当我使用sudo apt-get remove / install时,回复都是错误

我正在使用Ubuntu 12.04 LTS,每当我使用时: sudo apt-get remove sudo apt-get install 它回复: cp: failed to extend `/boot/initrd.img-3.5.0-47-generic.dpkg-bak’: No space left on device dpkg: error processing initramfs-tools (–configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1) 这是正确的吗? 是安装/删除? 回复: sudo apt-get install -f […]

“为python3.5运行python rtupdate钩子”失败了

我重新安装了Ubuntu avec一些文件系统问题。 现在我明白了: $ sudo apt-get update Hit:1 http://fr.archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://ppa.launchpad.net/fingerprint/fprint/ubuntu xenial InRelease Hit:3 http://fr.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:4 http://fr.archive.ubuntu.com/ubuntu xenial-backports InRelease Hit:5 http://fr.archive.ubuntu.com/ubuntu xenial-proposed InRelease Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [192 kB] Get:8 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [186 kB] Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [65.6 kB] Get:10 […]

我需要运行一个可能破坏`apt-get`数据库的脚本。 我应该备份什么?

我正在研究rm的包装脚本,它可能会破坏apt-get部分处理方式。 如果apt-get数据库被破坏,我需要先备份哪些文件?

在Ubuntu 14.04上使用gcc 3.4

通过完全按照这篇文章 ,我能够在全新安装的Ubuntu 14.04上安装gcc 3.4。 但是,当我尝试编译程序时,它失败并出现以下错误: /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status 我已经看过这个答案并安装了build-essential但是没有解决问题。 我仍然得到同样的错误。 另外,我在安装之前安装了g ++ – 3.4的依赖项: sudo apt-get build-dep g++-3.4 更新: 尝试gcc-3.4 -B/usr/lib/x86_64-linux-gnu hello.c会删除前两个错误。 /usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 […]

通过apt或apt-get查找使用给定程序安装的其他软件包?

我不知道另一种方法 – 如果已安装该程序(不像安装像debfoster这样的专门程序后安装的程序) – 除非我保存了apt或apt-get给出的消息:例如Thunar它说: The following additional packages will be installed: exo-utils libexo-1-0 libexo-common libexo-helpers libgarcon-1-0 libgarcon-common libthunarx-2-0 libtumbler-1-0 libwnck-common libwnck22 libxfce4ui-1-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-2 thunar-data thunar-volman tumbler tumbler-common xfce4-panel xfconf 如果没有像debfoster那样安装单独的工具,Ubuntu中是否已经提供此类信息? 所以, 我不是在问这些工具 (在这里回答),而是关于通过apt或apt-get查看已安装程序的软件包的方法。