ubuntu 安装.deb 文件时无法访问存档解决办法

ubuntu 安装.deb 文件时无法访问存档解决办法

我已经安装了 mysql 版本 6 的 deb fie...当我输入以下内容时:

sudo dpkg -i mysql-6.deb 

我收到了以下错误:

cannot access archive : no such file or directory 
errors were encountered while processing: mysql-6.deb

ls -lah 的结果:

teeba@ubuntu:~$ ls -lah
total 54K
drwxr-xr-x 24 teeba teeba 1.0K Feb 11 13:10 .
drwxr-xr-x  3 root  root  1.0K Feb  9 07:33 ..
-rw-------  1 teeba teeba  682 Feb 11 12:04 .bash_history
-rw-r--r--  1 teeba teeba  220 Feb  9 07:33 .bash_logout
-rw-r--r--  1 teeba teeba 3.5K Feb  9 07:33 .bashrc
drwx------ 20 teeba teeba 1.0K Feb 11 11:29 .cache
drwxrwxr-x  3 teeba teeba 1.0K Feb 10 03:07 .compiz-1
drwx------ 14 teeba teeba 1.0K Feb 11 11:14 .config
drwx------  3 teeba teeba 1.0K Feb  9 15:35 .dbus
drwxr-xr-x  4 teeba teeba 1.0K Feb 11 11:19 Desktop
-rw-r--r--  1 teeba teeba   25 Feb 11 13:10 .dmrc
drwxr-xr-x  2 teeba teeba 1.0K Feb  9 15:35 Documents
drwxr-xr-x  2 teeba teeba 1.0K Feb  9 15:35 Downloads
-rw-r--r--  1 teeba teeba 8.3K Feb  9 07:33 examples.desktop
drwxr-xr-x  2 teeba teeba 1.0K Feb 10 11:03 .fontconfig
drwx------  5 teeba teeba 1.0K Feb 11 13:10 .gconf
-rw-r-----  1 teeba teeba    0 Feb 11 11:06 .gksu.lock
drwx------  4 teeba teeba 1.0K Feb  9 15:35 .gnome2
-rw-------  1 teeba teeba    0 Feb  9 15:39 .goutputstream-7OXQAX
-rw-------  1 teeba teeba    0 Feb 11 11:31 .goutputstream-NHM7AX
-rw-------  1 teeba teeba    0 Feb 10 09:57 .goutputstream-V2USAX
drwxrwxr-x  2 teeba teeba 1.0K Feb 10 08:11 .gstreamer-0.10
-rw-rw-r--  1 teeba teeba  137 Feb 11 13:10 .gtk-bookmarks
dr-x------  2 teeba teeba    0 Feb 11 13:10 .gvfs
-rw-------  1 teeba teeba 2.5K Feb 11 13:10 .ICEauthority
drwxr-xr-x  3 teeba teeba 1.0K Feb  9 15:35 .local
drwx------  3 teeba teeba 1.0K Feb  9 15:35 .mission-control
drwx------  4 teeba teeba 1.0K Feb 10 03:14 .mozilla
drwxr-xr-x  2 teeba teeba 1.0K Feb  9 15:35 Music
-rw-rw-r--  1 teeba teeba    0 Feb 10 08:31 mysql-5.6.deb
drwxr-xr-x  2 teeba teeba 1.0K Feb 11 12:04 Pictures
-rw-r--r--  1 teeba teeba  675 Feb  9 07:33 .profile
drwxr-xr-x  2 teeba teeba 1.0K Feb  9 15:35 Public
drwx------  2 teeba teeba 1.0K Feb 11 13:10 .pulse
-rw-------  1 teeba teeba  256 Feb  9 15:35 .pulse-cookie
drwxr-xr-x  2 teeba teeba 1.0K Feb  9 15:35 Templates
drwx------  4 teeba teeba 1.0K Feb  9 15:36 .thumbnails
drwxr-xr-x  2 teeba teeba 1.0K Feb  9 15:35 Videos
-rw-------  1 teeba teeba   51 Feb 11 13:10 .Xauthority
-rw-------  1 teeba teeba 1.7K Feb 11 13:10 .xsession-errors
-rw-------  1 teeba teeba 5.8K Feb 11 12:05 .xsession-errors.old

如何轻松安装 .deb 文件?

更新 :

我输入的内容如下:

sudo dpkg -i '/home/teeba/Desktop/mysql-workbench-community-6.0.9-1ubu1204-i386.deb'

并得到以下结果:

Selecting previously unselected package mysql-workbench-community:i386.
(Reading database ... 141848 files and directories currently installed.)
Unpacking mysql-workbench-community:i386 (from .../mysql-workbench-community-6.0.9-1ubu1204-i386.deb) ...
dpkg: dependency problems prevent configuration of mysql-workbench-community:i386:
 mysql-workbench-community:i386 depends on libatkmm-1.6-1 (>= 2.22.1).
 mysql-workbench-community:i386 depends on libc6 (>= 2.4).
 mysql-workbench-community:i386 depends on libcairo2 (>= 1.8.0).
 mysql-workbench-community:i386 depends on libctemplate0.
 mysql-workbench-community:i386 depends on libgcc1 (>= 1:4.1.1).
 mysql-workbench-community:i386 depends on libgdk-pixbuf2.0-0 (>= 2.22.0).
 mysql-workbench-community:i386 depends on libglib2.0-0 (>= 2.31.8).
 mysql-workbench-community:i386 depends on libglibmm-2.4-1c2a (>= 2.32.0).
 mysql-workbench-community:i386 depends on libgnome-keyring0 (>= 2.22.2).
 mysql-workbench-community:i386 depends on libgtk2.0-0 (>= 2.24.0).
 mysql-workbench-community:i386 depends on libgtkmm-2.4-1c2a (>= 1:2.24.0).
 mysql-workbench-community:i386 depends on liblua5.1-0.
 mysql-workbench-community:i386 depends on libmysqlclient18 (>= 5.5.13-1).
 mysql-workbench-community:i386 depends on libpango1.0-0 (>= 1.18.0).
 mysql-workbench-community:i386 depends on libpangomm-1.4-1 (>= 2.27.1).
 mysql-workbench-community:i386 depends on libpcre3 (>= 8.10).
 mysql-workbench-community:i386 depends on libpcrecpp0 (>= 7.7).
 mysql-workbench-community:i386 depends on libpython2.7 (>= 2.7).
 mysql-workbench-community:i386 depends on libsigc++-2.0-0c2a (>= 2.0.2).
 mysql-workbench-community:i386 depends on libsqlite3-0 (>= 3.5.9).
 mysql-workbench-community:i386 depends on libstdc++6 (>= 4.6).
 mysql-workbench-community:i386 depends on libtinyxml2.6.2.
 mysql-workbench-community:i386 depends on libuuid1 (>= 2.16).
 mysql-workbench-community:i386 depends on libx11-6.
 mysql-workbench-community:i386 depends on libxml2 (>= 2.7.4).
 mysql-workbench-community:i386 depends on libzip2 (>= 0.10).
 mysql-workbench-community:i386 depends on python-paramiko.
 mysql-workbench-community:i386 depends on python-pexpect.
 mysql-workbench-community:i386 depends on python-pysqlite2.
dpkg: error processing mysql-workbench-community:i386 (--install):
 dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme ...
Processing triggers for shared-mime-info ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
 mysql-workbench-community:i386
teeba@ubuntu:~$ 

依赖关系存在问题...如何解决?

答案1

我认为您的问题是您下载的 mysql workbench 适用于 32 位 ubuntu 12.04。

如果你的 ubuntu 是 64 位的,你应该从以下网址下载 64 位版本的 mysql workbench这里

如果你发出命令

uname -a 

在终端中你应该看到如下内容:

3.2.0-58-通用#88-Ubuntu SMP 2013 年 12 月 3 日星期二 17:37:58 UTC x86_64 x86_64 x86_64 GNU/Linux

然后键是 x86_64 意味着这是一个 64 位操作系统

答案2

方法 1

右键单击该文件并选择“使用 Ubuntu 软件中心打开”:
右键单击该文件并选择“使用 Ubuntu 软件中心打开”

方法 2a

选择并复制文件

打开终端并输入:

sudo dpkg -i 

然后右键单击并“粘贴文件名” - 您应该得到类似这样的内容,没有%20s,并且带有引号'

sudo dpkg -i '/home/wilf/Downloads/dropbox_1.6.0_i386.deb'


方法 2b

更改为文件.deb所在的目录*-如果位于Downloads主文件夹中:

cd ~/Downloads

或者在目录中Firefox,在文件夹中Downloads

cd ~/Downloads/Firefox

如果运行以下命令,您应该能够判断终端是否在正确的目录中:

ls | grep -i deb

并且文件名出现在输出中:

wilf@comp:~/Downloads$ ls | grep -i deb
dropbox_1.6.0_i386.deb

您应该能够以如下方式运行它:

sudo dpkg -i dropbox_1.6.0_i386.deb 

还请注意,终端当前所在的目录名称出现在命令提示符中,位于您的用户名和计算机主机名的右侧。您运行的终端dpkg需要与文件位于同一目录中.deb

*默认情况下,终端位于主目录中,其表示为~

相关内容