Ubuntu Unity 14.04 LTS 删除了所有镜头,文件除外。(讨厌破折号。)
我有一个用于网站开发的 LAMP 系统。我想把我所有的数据文件放在一个特定的分区中,我可以轻松地在台式机和笔记本电脑之间来回复制。在笔记本上(也运行 14.04 LTS unity -64),我执行了以下步骤,效果很好:
sudo /etc/init.d/mysql stop
sudo cp -R -p /var/lib/mysql /ddr/mysql
gedit /etc/mysql/my.cnf <<changed datadir from /var/lib/mysql to /ddr/mysql>>
sudo gedit /etc/apparmor.d/usr.sbin.mysqld <<changed all lines /var/lib/mysql as above>>
sudo /etc/init.d/apparmor reload
sudo /etc/init.d/mysql restart
Run Code Online (Sandbox Code Playgroud)
当我在桌面上尝试同样的事情时,一切都崩溃了。我试过重新安装、清除、自动删除,如此处、此处和此处所述,但重新安装始终挂起并显示以下消息:
sadhu@desktop:~$ sudo apt-get install mysql-server mysql-common mysql-client
... <output snipped> ...
Setting up mysql-client (5.5.37-0ubuntu0.14.04.1) ...
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: …Run Code Online (Sandbox Code Playgroud) 假设我有一个依赖于libtool要构建的可执行文件的 PPA 包。在 Vivid 中,此可执行文件由libtool-bin包提供。对于早期的 Ubuntu 版本,它由libtool包提供。
使用类似的替换变量${dist:BuildDepends}显然只能用于Depends,但不能用于Build-Depends。那么如何Build-Depends在我的包的控制文件中指定适用于 Vivid ( Build-Depends: libtool-bin) 和早期版本 ( Build-Depends: libtool) 的 ?
我想安装 gitg (0.3.3) 并按照此处说明的步骤操作: 如何在 Ubuntu 14.04 上安装 gitg 0.3.3?
...但我似乎错过了依赖项,这些依赖项不在包管理器的存储库中。
configure: error: Package requirements (
gthread-2.0 >= 2.38
glib-2.0 >= 2.38
gobject-2.0 >= 2.38
gmodule-2.0 >= 2.38
gio-2.0 >= 2.38
gio-unix-2.0 >= 2.38
gobject-introspection-1.0 >= 0.10.1
libgit2-glib-1.0 >= 0.0.18
gtk+-3.0 >= 3.12.0
webkit2gtk-3.0 >= 2.2
gee-0.8
json-glib-1.0
) were not met:
No package 'gthread-2.0' found
No package 'glib-2.0' found
No package 'gobject-2.0' found
No package 'gmodule-2.0' found
No package 'gio-2.0' found
No package 'gio-unix-2.0' found
No package 'gobject-introspection-1.0' found …Run Code Online (Sandbox Code Playgroud) 我通过一个包中的依赖项获得了一个 wine 包,该包为您提供 Silverlight 和适用于 Linux 的最新 Adobe Flash。但是,我在启动软件中心时出现错误,并且还会在顶部面板中反复出现错误图标

有一条消息:
An error occurred, please run Package Manager from the right-click
menu or apt-get in a terminal to see what is wrong. The error message
was: 'Unknown Error: '<class 'KeyError'>'("The cache has no package
named 'wine-staging-i386'")'. This usually means that your installed
packages have unmet dependencies
Run Code Online (Sandbox Code Playgroud)
我通过做一些事情来解决这个问题,我想用 Synatic,但现在 Synaptic Package Manager->Edit->Fix Broken Packages 没有修复它。选择它告诉我“成功修复依赖问题”,但我仍然在顶部栏中显示错误图标。
根据下面的评论:
$ sudo apt-get -f install
Reading package lists...
Done Building dependency tree
Reading state …Run Code Online (Sandbox Code Playgroud) 所以我打算在切换到Ubuntu后继续学习Opengl,我尝试了这个解释来编译glfw并使用它,但我得到了这个:
-- Using X11 for window creation
-- Using GLX for context creation
CMake Error at CMakeLists.txt:268 (message):
The Xinerama library and headers were not found
-- Configuring incomplete, errors occurred!
Run Code Online (Sandbox Code Playgroud)
这是CMakeError.log,这是CMakeOutput.log。
好的,在 glfw 失败后,我转到了 libsdl2:
sudo apt-get install libsdl2-dev
Run Code Online (Sandbox Code Playgroud)
结果(令人震惊..):
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 …Run Code Online (Sandbox Code Playgroud) 我下载并编译了最新的python 3.5,并用checkinstall 安装了它。现在我得到了大量在 apt 中缺少依赖项的包。
apt-xapian-index : Depends: python (< 2.8) but 3.5.0-1 is to be
installed
duplicity : Depends: python (< 2.8) but 3.5.0-1 is to be installed
gconf2 : Depends: python:any
.
.
.
totem-plugins : Depends: python:any (>= 2.6.6-7~)
ubuntu-system-service : Depends: python (< 2.8) but 3.5.0-1 is to be installed
Depends: python:any (>= 2.7.1-0ubuntu2)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
但我仍然安装了包括 2.7.9 在内的 python。
$ which python
/usr/bin/python …Run Code Online (Sandbox Code Playgroud) 我试图从 ubuntu 14.10 升级到 15.04,它停止升级并提供了我没有做的部分升级。现在我遇到了deja-dup-monitor消耗大约 7GB 内存的问题。我正在尝试卸载它。但是每当我使用apt-get它安装或卸载时都会显示一条消息packages have unmet dependencies
The following packages have unmet dependencies:
cups : Depends: libcups2 (= 1.7.5-3ubuntu3.2) but 2.0.2-1ubuntu3.2 is to be installed
cups-core-drivers : Depends: libcups2 (= 1.7.5-3ubuntu3.2) but 2.0.2-1ubuntu3.2 is to be installed
cups-daemon : Depends: libcups2 (= 1.7.5-3ubuntu3.2) but 2.0.2-1ubuntu3.2 is to be installed
dmsetup : Depends: libdevmapper1.02.1 (>= 2:1.02.90) but 2:1.02.77-6ubuntu2 is to be installed
libcupsmime1 : Depends: libcups2 (= 1.7.5-3ubuntu3.2) but 2.0.2-1ubuntu3.2 is to be …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Kubuntu 中使用Unity3d,但出现此错误:
Service not avaliable, please try again later.
Run Code Online (Sandbox Code Playgroud)
我找到了这个帖子:
Certain systems may experience "Service unavailable" errors when trying to log in. WORKAROUND: Launch Unity with LD_PRELOAD=/usr/lib/libresolv.so.2 /path/to/Unity (check the path to your local libresolv)
Run Code Online (Sandbox Code Playgroud)
我已经在我的电脑中检查了 libresolv.so.2 的路径。我在 /lib32/libresolv.so.2 和 /libx32/libresolv.so.2 下找到了它。(不知道有什么区别)。
当我运行时:
LD_PRELOAD=/lib32/libresolv.so.2 /opt/Unity/Editor/Unity
Run Code Online (Sandbox Code Playgroud)
我得到:
ERROR: ld.so: object '/lib32/libresolv.so.2' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Run Code Online (Sandbox Code Playgroud)
当我运行时:
LD_PRELOAD=/libx32/libresolv.so.2 /opt/Unity/Editor/Unity
Run Code Online (Sandbox Code Playgroud)
我得到:
ERROR: ld.so: object '/libx32/libresolv.so.2' from LD_PRELOAD cannot be preloaded (cannot open …Run Code Online (Sandbox Code Playgroud) 我试图使用 do-release-upgrade 从 16.04 升级到 16.10,但后来不得不在中间停止它。我现在无法恢复。
~ ? iitpi sudo do-release-upgrade
Checking for a new Ubuntu release
No new release found
? ? ~ ? iitpi sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... 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 …Run Code Online (Sandbox Code Playgroud) 我无法安装 libgmp,因为看起来 snap-confine 和 snapd 具有循环依赖关系。我该如何处理?
Failed to execute operation: No such file or directory
dpkg: error processing package snapd (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of snap-confine:
snap-confine depends on snapd (= 2.23~14.04); however:
Package snapd is not configured yet.
dpkg: error processing package snap-confine (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were …Run Code Online (Sandbox Code Playgroud)