刚刚在我的笔记本电脑上安装了 Lubuntu。之前它只运行过 Win8 操作系统。
之后我尝试按照以下步骤安装slimjet:
https://linuxways.net/ubuntu/how-to-install-slimjet-browser-on-ubuntu-20-04/
但我无法做到,因为 CD 之后出现了一些“不是目录”错误,并且 dpkg 命令不起作用。
这是从我的终端获得的(奇怪的是,它可以识别“ls”命令并带来文件夹,但它不会对键入或甚至复制的路径执行相同的操作!)
none0@none0-X102BA:~$ cd ~/Downloads/slimjet_amd64.deb
bash: cd: /home/none0/Downloads/slimjet_amd64.deb: Not a directory
none0@none0-X102BA:~$ ~/Downloads$ ls
bash: /home/none0/Downloads$: No such file or directory
none0@none0-X102BA:~$ cd /home/none0/Downloads/slimjet_amd64.deb
bash: cd: /home/none0/Downloads/slimjet_amd64.deb: Not a directory
none0@none0-X102BA:~$
none0@none0-X102BA:~$ ls
Desktop Downloads Music Public Videos
Documents mozilla.pdf Pictures Templates
none0@none0-X102BA:~$ Downloads
Downloads: command not found
none0@none0-X102BA:~$ cd /home/none0/Downloads/slimjet_amd64.deb
bash: cd: /home/none0/Downloads/slimjet_amd64.deb: Not a directory
none0@none0-X102BA:~$ cd /home/none0/Downloads/slimjet_amd64.deb
bash: cd: /home/none0/Downloads/slimjet_amd64.deb: Not a directory
none0@none0-X102BA:~$ sudo dpkg -i slimjet_amd64.deb
[sudo] password for none0:
dpkg: error processing archive slimjet_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
slimjet_amd64.deb
none0@none0-X102BA:~$ rr
The program 'rr' is currently not installed. You can install it by typing:
sudo apt install rr
答案1
该页面上的说明是错误的!
正确的命令是:
cd ~/Downloads
cd
代表更改目录。Downloads
是目录。
完成上述命令后,输入下一个命令:
sudo dpkg -i slimjet_amd64.deb
系统会要求您输入密码。输入密码后,终端上不会显示任何内容。这是正常现象。
卸载
如果你不喜欢该软件并且想要卸载它,请使用以下命令:
sudo apt remove slimjet
另一种卸载方法是打开 Ubuntu 软件商店并搜索 slimjet。它应该被列为已安装的软件,然后单击消除按钮将其删除。
无论哪种情况,您都需要输入密码。
看如何卸载软件?有关在 Ubuntu 中卸载软件的更多信息。
希望这可以帮助
答案2
您无法通过 cd(更改目录)转到 .deb 文件,因为它不是目录。
请尝试执行sudo dpkg -i ~/Downloads/slimjet_amd64.deb
以安装位于下载目录中的 slimjet_amd64.deb。