我在 RAM 严重受限的笔记本电脑上安装了纯香草 Lucid 桌面(带有一个慢速驱动器,可实现额外的快乐交换)。
我正在尝试删除潜入 ubuntu-desktop 的软件包,我知道我永远不会使用它。例如
apt-get remove --simulate '.*openoffice.*'
Run Code Online (Sandbox Code Playgroud)
工作没有问题,但也没有为我节省任何 RAM。所以我查看了实际运行的东西,因为盒子没有蓝牙,
apt-get remove --simulate gnome-bluetooth
Run Code Online (Sandbox Code Playgroud)
看起来很合理,但带走了包裹gnome-user-share。不过没关系。但是,如果我不想要打印功能,
apt-get remove --simulate cups
Run Code Online (Sandbox Code Playgroud)
想要取出ubuntu-desktop哪个是一个元包,它依赖于字面上 100 个基本子系统(例如 nautilus 和 gnome-panel 等)。当然,删除cups不会导致 nautilus 的删除,但它似乎会让我的 apt 包状态混乱。
我是否错过了一些深刻的 Ubuntu 神秘感,或者移除杯子会很糟糕吗?(我--simulate在我的例子中放了这个标志,以免有人剪切粘贴哭)。
在debian/control文件中,如何指定该包的 2 个版本之间对该包的依赖关系?
例如:python 2.5 或更高但低于 python 2.7。
Depends: python ($VERSION_STRING)
Run Code Online (Sandbox Code Playgroud)
会$VERSION_STRING是什么?
我试图构建 dasher,但我得到了它的需要glib。所以这样做了:
Checking for GLIB... configure: error: Package requirements (glib-2.0>= 2.6) were not met:
No package 'glib-2.0' found
Run Code Online (Sandbox Code Playgroud)
所以我尝试安装libglib2.0-dev
它给出了另一个错误:
libglib2.0-dev:
Depends: libglib2.0-0 (=2.26.0-0ubuntu1) but 2.26.1-0ubuntu1 is to be installed
Depends: libglib2.0-bin but it is not going to be installed
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
我最近在尝试在我的 Ubuntu 计算机上安装 ffmpeg 时遇到了一个问题。我正在运行 Ubuntu 11.10 64 位,安装了所有最新更新并且系统运行完美,但是我觉得需要记录我的桌面并阅读了很多文章,ffmpeg 是它最好的记录工具之一(除了提供视频包)所以我试着跑
sudo apt-get install ffmpeg
Run Code Online (Sandbox Code Playgroud)
但是我无法做到这一点,因为包有未满足的依赖项。这是我在尝试安装上面的软件包后收到的全文。
Reading package lists... Done Building dependency tree Reading
state information... Done Some packages could not be installed. This
may mean that you have requested an impossible situation or if you are
using the unstable distribution that some required packages have not
yet been created or been moved out of Incoming. The following
information may help to resolve the situation:
The following packages have unmet dependencies: …Run Code Online (Sandbox Code Playgroud) 我正在安装的软件需要/lib/libc.so.6,但它没有到位:
$> ls -l /lib/libc*
lrwxrwxrwx 1 root root 14 2011-10-09 06:02 /lib/libcap.so.2 -> libcap.so.2.20
-rw-r--r-- 1 root root 18832 2011-02-16 03:42 /lib/libcap.so.2.20
-rw-r--r-- 1 root root 1620736 2012-05-23 07:19 /lib/libcrypto.so.0.9.8
Run Code Online (Sandbox Code Playgroud)
libc并libc6-dev已安装。跑步apt-get upgrade glibc并不能解决这个问题。
我应该怎么做才能解决这种依赖性?
我在虚拟机上运行 Ubuntu 12.04.2 LTS 并且遇到了一个小问题。每当我尝试升级时,我都会得到:
apt-get upgrade
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:
linux-headers-virtual : Depends: linux-headers-3.2.0-44-virtual but it is not installed
linux-virtual : Depends: linux-image-virtual (= 3.2.0.44.53) but 3.2.0.45.54 is installed
E: Unmet dependencies. Try using -f.
Run Code Online (Sandbox Code Playgroud)
但是,如果我尝试 -f install (按照建议),我会得到:
apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... …Run Code Online (Sandbox Code Playgroud) 比方说,我有一个包A,其具有Depends: B (>= 1.0.0)在其control文件中。
将B安装作为A与依赖前段时间1.0.0版本。
现在B已在存储库中更新到1.0.42版本,我想要upgrade它。
我不喜欢做的事情:apt-get install B因为它会标记B为“手动安装”(不确定如何正确命名)包,autoremove如果我决定停止使用,它也不会被删除A。
那么是否有一个类似的东西apt-get upgrade只升级一个特定的包及其依赖项(可能是递归的,在我的情况下无关紧要,因为B不依赖于其他任何东西)?
PS:我问的是当前可用的 LTS 版本。所以 10.04 和 12.04
我一直在尝试在运行 Ubuntu 18.04 的 PC 上安装 lighty。我不断收到的错误是它有未满足的依赖项,即 libssl1.1。但是,已经安装了 libssl1.1。
$ sudo apt-get install lighttpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
lighttpd …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Ubuntu 18.04 机器上安装 R,但遇到了“未满足的依赖项”问题。但是,我无法确定我可以去哪里或者我需要在我的系统上修复什么来克服这个问题。任何帮助将不胜感激。
我正在运行 Ubuntu 18.04.2 LTS(带有 16Gb RAM 和 500Gb 硬盘),仅使用标准bionic存储库;我添加的唯一 PPA 是用于 libreoffice 的。看到那里的东西后,输出到sudo apt updateIS
Ign:1 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:7 https://desktop-download.mendeley.com/download/apt stable InRelease [2,456 B]
Get:8 https://typora.io/linux ./ InRelease [758 B]
Hit:9 http://repository.spotify.com stable InRelease
Hit:10 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease
Hit:11 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease
Hit:12 http://sg.archive.ubuntu.com/ubuntu bionic InRelease
Hit:13 http://sg.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:14 http://sg.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 91.9 …Run Code Online (Sandbox Code Playgroud) openvpn-2.4.8
https://swupdate.openvpn.org/community/releases/openvpn-2.4.8.tar.gz
Ubuntu 18.04.4 LTS
我想构建和安装 OpenVPN。
tar -zxf openvpn-<version>.tar.gz
cd openvpn-<version>
./configure
Run Code Online (Sandbox Code Playgroud)
我得到以下输出:
configure: error: lzo enabled but missing
尝试安装 lzo 会产生以下结果。
sudo apt install liblzo2-2
liblzo2-2 is already the newest version (2.08-1.2).
Run Code Online (Sandbox Code Playgroud)
如何安装 ./configure 脚本识别的 lzo 版本?
dependencies ×10
apt ×4
10.10 ×1
18.04 ×1
dpkg ×1
ffmpeg ×1
installation ×1
makefile ×1
networking ×1
openvpn ×1
packaging ×1
r ×1
upgrade ×1
vpn ×1