无法解压缩文件

Val*_*512 23 command-line locale unzip

试图解压缩文件,所以我尝试以下命令对不起,我对 linux 真的很陌生

顺便说一句,这是 Ubuntu 服务器的最新版本。

user@serverubuntu:~/minecraft/server$ ls
rtk.zip
user@serverubuntu:~/minecraft/server$ sudo unzip rtk.zip
sudo: unzip: command not found
user@serverubuntu:~/minecraft/server$ 
Run Code Online (Sandbox Code Playgroud)

当我在没有 sudo 的情况下尝试时,我得到了这个

user@serverubuntu:~/minecraft/server$ unzip rtk.zip
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.3
Python version: 3.2.3 final 0
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:   quantal
Exception information:

unsupported locale setting
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, incrash_guard
    callback()
  File "/usr/lib/command-not-found", line 69, in main
    enable_i18n()
  File "/usr/lib/command-not-found", line 40, in enable_i18n
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python3.2/locale.py", line 541, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
Run Code Online (Sandbox Code Playgroud)

提前致谢

编辑 - 我原来的 zip 文件已损坏。

Pan*_*her 45

您可能需要安装 unzip

sudo apt-get install zip unzip
Run Code Online (Sandbox Code Playgroud)

至于你的错误消息,是的,你应该提交一份关于那个的错误报告。

“我如何报告错误?”

  • @Valkyrie0512 这意味着该文件终究不是一个 zip 文件,尽管它的名称,或者文件已损坏(可能被截断)。`文件 rtk.zip` 显示什么?你能验证 zip 文件的大小吗? (3认同)