使用 Ubuntu 12.04 LTS 64 位。主机已离线,因此必须保持离线状态。
我需要安装 odbc 以便从系统上运行的 C++ 应用程序与远程数据库进行通信。
我已经下载了“libmyodbc”所需的所有软件包,并将它们传输到系统中:
mysql-common_5.5.44-0ubuntu0.12.04.1_all.deb '
libmysqlclient18_5.5.44-0ubuntu0.12.04.1_amd64.deb
libodbc1_2.2.14p2-5ubuntu3_amd64.deb
odbcinst1debian2_2.2.14p2-5ubuntu3_amd64.deb
odbcinst_2.2.14p2-5ubuntu3_amd64.deb
libmyodbc_5.1.10-1_amd64.deb'
Run Code Online (Sandbox Code Playgroud)
我正在使用 dpkg -i 进行安装,但在尝试安装 obcinst*.deb 和 odbcinst1debian2*.deb 时出现冲突:
Selecting previously unselected package odbcinst.
(Reading database ... 203584 files and directories currently installed.)
Unpacking odbcinst (from odbcinst_2.2.14p2-5ubuntu3_amd64.deb) ...
dpkg: dependency problems prevent configuration of odbcinst:
odbcinst depends on odbcinst1debian2 (>= 2.2.14p2); however:
Package odbcinst1debian2 is not configured yet.
Run Code Online (Sandbox Code Playgroud)
所以odbcinst无法安装,因为odbcinst1debian2没有安装。所以我尝试安装odbcinst1debian2,并得到:
Selecting previously unselected package odbcinst1debian2.
(Reading database ... 203563 files and …
Run Code Online (Sandbox Code Playgroud) 我添加了 Oibaf 和 Paulo Diases 存储库并升级了我的系统,这导致了 apt 损坏。我无法清除它们中的任何一个。
每当我尝试使用任何 apt 命令时都会发生这种情况。apt --fix-broken install
不起作用:
sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libgl1-mesa-dev : Depends: libgl1-mesa-glx (= 1:17.2~git170422012800.d682f8a~z~padoka0) but 17.2~git1704220730.d682f8~gd~z is installed
libgl1-mesa-glx : Depends: libglapi-mesa (= 17.2~git1704220730.d682f8~gd~z) but 1:17.2~git170422012800.d682f8a~z~padoka0 is installed
Breaks: libgl1-mesa-glx:i386 (!= 17.2~git1704220730.d682f8~gd~z) but 1:17.2~git170422012800.d682f8a~z~padoka0 is installed
libgl1-mesa-glx:i386 : Breaks: libgl1-mesa-glx (!= 1:17.2~git170422012800.d682f8a~z~padoka0) …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Ubuntu 上启动 React-native 项目,node、npm 都是最新版本。根据文档我已经安装了所有官方的create-react-native-app
及其依赖项。
这是 npm 启动后的输出屏幕
gd@gd:~/Desktop$ cd testing7/
gd@gd:~/Desktop/testing7$ npm start
> testing7@0.1.0 start /home/gd/Desktop/testing7
> react-native-scripts start
10:01:07: Starting packager...
***ERROR STARTING PACKAGER***
Starting React Native packager...
Scanning folders for symlinks in /home/gd/Desktop/testing7/node_modules (44ms)
Loading dependency graph.
jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project. …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用安装 cockpitvbyapt-get install cockpit
但出现以下错误。
The following packages have unmet dependencies:
cockpit : Depends: cockpit-system (= 172-1~ubuntu18.04.1) but it is not going to be installed
Recommends: cockpit-storaged (= 172-1~ubuntu18.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
通过Ubuntu的一些谷歌搜索和驾驶舱指令,我还添加了以下行source.list
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
Run Code Online (Sandbox Code Playgroud)
如Ubuntu 帮助中所述,然后更新
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
然后尝试安装
sudo apt-get install cockpit
Run Code Online (Sandbox Code Playgroud)
但仍然收到以下错误:
The following packages have unmet dependencies:
cockpit : …
Run Code Online (Sandbox Code Playgroud) 我曾尝试清除 nouveau 驱动程序,将其放入黑名单,使用 ppa:graphics-drivers,(我尝试了一个这样的 oibaf:graphics-drivers),从 Nvidia 下载了 304.137 驱动程序,尝试过ubuntu-drivers autoinstall
,但它们都不起作用。唯一的结果是我看到了 640x480 的屏幕。
使用命令sudo apt install
,会出现以下结果:
$ sudo apt install nvidia-304 正在阅读包裹清单...完成 创建依赖树 正在读取状态信息...完成 无法安装某些软件包。 这可能意味着您请求了一个不可能的情况,或者如果 您正在使用某些必需软件包的不稳定发行版 尚未创建或移出 Incoming。 以下信息可能有助于解决这种情况: 以下软件包具有未满足的依赖项: nvidia-304:取决于:xorg-video-abi-11 但不可安装或 xorg-video-abi-12 但不可安装或 xorg-video-abi-13 但不可安装或 xorg-video-abi-14 但不可安装或 xorg-video-abi-15 但不可安装或 xorg-video-abi-18 但不可安装或 xorg-video-abi-19 但不可安装或 xorg-video-abi-20 但不可安装或 xorg-video-abi-23 取决于:xserver-xorg-core 但它不会被安装 推荐:nvidia-settings (>= 331.20) 但它不会被安装 E:无法纠正问题,您持有破损的包裹。
我不知道该遵循哪个教程了。任何人都可以解决这个问题吗?这是一块带有 Nvidia nForce 430 芯片组和 IGP GeForce 6150LE 的主板。
package-management nvidia dependencies drivers software-installation
我有以下构建错误:
meson.build:49:0: ERROR: Dependency "gstreamer-pbutils-1.0" not found
Run Code Online (Sandbox Code Playgroud)
我想满足所需的依赖项。上一个是:
meson.build:48:0: ERROR: Dependency "gstreamer-1.0" not found
Run Code Online (Sandbox Code Playgroud)
但这已通过gstreamer 自己的网页和说明修复。
但是我找不到任何安装 gstreamer-pbutils-1.0 的方法。
pbutils 上的gstreamer 页面不是很有帮助。似乎他们认为 pbutils utils 会附带他们给出的说明。
我在 Ubuntu 19.04 上。
我从这里下载了搜狗输入法的64位包https://pinyin.sogou.com/linux/
当我尝试安装它时,在 Ubuntu 20.04 上出现依赖错误
Note, selecting 'sogoupinyin' instead of './sogoupinyin_2.3.1.0112_amd64.deb'
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:
sogoupinyin : Depends: fcitx-frontend-qt4 but it is not installable
Depends: libqtwebkit4 but it is …
Run Code Online (Sandbox Code Playgroud) 当我尝试在 Ubuntu 20.04.2 LTS 上安装 wine 时,出现以下错误:
jayden@UbuntuInstall:~$ sudo apt install --install-recommends winehq-stable
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:
winehq-stable : …
Run Code Online (Sandbox Code Playgroud) 每当我跑步时sudo apt update
我都会得到这个结果
Reading package lists... Error!
E: Problem parsing dependency 21 of libx32gcc-10-dev:i386=10-20200411-0ubuntu1
E: Error occurred while processing libx32gcc-10-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
Run Code Online (Sandbox Code Playgroud) 我在Ubuntu 20.04中下载了Remarkable Markdown编辑器的.deb文件。当我开始运行 .deb 文件时,它显示以下错误:
错误:依赖关系不可满足:gir1.2-webkit-3.0
据我所知,WebKit是Apple产品的浏览器引擎。我不知道为什么 Linux 上需要它。任何解决此问题的帮助将不胜感激。