尝试解压缩文件,所以我尝试以下命令对不起,即时通讯对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$
当我尝试不使用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
感谢advace
编辑-我原来已损坏的zip文件。
刚安装并在解压缩时找回了它。user @ serverubuntu:〜/ minecraft / server $解压缩rtk.zip存档:rtk.zip找不到中央目录的末尾签名。该文件不是zip文件,或者它是一个多部分归档文件的一个磁盘。在后一种情况下,将在此存档的最后一个磁盘上找到中央目录和zipfile注释。解压缩:无法在rtk.zip或rtk.zip.zip之一中找到zipfile目录,也找不到rtk.zip.ZIP,句点。user @ serverubuntu:〜/ minecraft / server $
—
Valkyrie0512
@ Valkyrie0512,中央目录末尾的内容表示zip无效。重新下载它,您会很高兴。
—
马特
unzip
安装吗?如果不是,sudo apt-get install unzip