在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:~$ 

依赖中存在问题……如何解决?

我认为您下载的mysql工作台的问题是32位ubuntu 12.04。

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

如果你发出命令

 uname -a 

在终端你应该看到这样的东西:

3.2.0-58-generic#88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU / Linux

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

方法1

右键单击该文件,然后选择“使用Ubuntu软件中心打开”:
Right-click on the file and select 'Open With Ubuntu Software Centre'

方法2a

选择并复制文件

打开终端,输入:

 sudo dpkg -i 

然后右键单击并“粘贴文件名” – 你应该得到类似的东西,没有%20秒,并且在引号'

 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文件位于同一个sirecotry中。

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