如何解决tar:jdk1.8.0_102:无法mkdir:远程服务器中的权限被拒绝

时间:2017-01-27 12:45:38

标签: java linux putty winscp suse

我正在尝试将java 8安装到远程服务器上。我有sudo访问权限,但当我尝试使用命令tar zxvf jdk-8u102-linux-x64.tar.gz安装它时,我收到此错误消息:

tar: jdk1.8.0_102: Cannot mkdir: Permission denied
tar: jdk1.8.0_102/jre/lib/desktop/icons/hicolor/16x16/apps: Cannot mkdir: No such file or directory
jdk1.8.0_102/jre/lib/desktop/icons/hicolor/16x16/apps/sun-javaws.png
tar: jdk1.8.0_102: Cannot mkdir: Permission denied
tar: jdk1.8.0_102/jre/lib/desktop/icons/hicolor/16x16/apps/sun-javaws.png: Cannot open: No such file or directory
jdk1.8.0_102/jre/lib/desktop/icons/hicolor/16x16/apps/sun-java.png
tar: jdk1.8.0_102: Cannot mkdir: Permission denied
tar: jdk1.8.0_102/jre/lib/desktop/icons/hicolor/16x16/apps/sun-java.png: Cannot open: No such file or directory
jdk1.8.0_102/jre/lib/desktop/icons/hicolor/16x16/apps/sun-jcontrol.png
tar: jdk1.8.0_102: Cannot mkdir: Permission denied
tar: jdk1.8.0_102/jre/lib/desktop/icons/hicolor/16x16/apps/sun-jcontrol.png: Cannot open: No such file or directory
jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48/
tar: jdk1.8.0_102: Cannot mkdir: Permission denied
tar: jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48: Cannot mkdir: No such file or directory
jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48/mimetypes/
tar: jdk1.8.0_102: Cannot mkdir: Permission denied
tar: jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48/mimetypes: Cannot mkdir: No such file or directory
jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48/mimetypes/gnome-mime-text-x-java.png
tar: jdk1.8.0_102: Cannot mkdir: Permission denied
tar: jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48/mimetypes/gnome-mime-text-x-java.png: Cannot open: No such file or directory
jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-java-jnlp-file.png
tar: jdk1.8.0_102: Cannot mkdir: Permission denied
tar: jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-java-jnlp-file.png: Cannot open: No such file or directory
jdk1.8.0_102/jre/lib/desktop/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-java-archive.png
tar: jdk1.8.0_102: Cannot mkdir: Permission denied

我的文件位于服务器上。我使用WinSCP上传它 -rwxrwxrwx 1位用户181435897 8月3日09:29 jdk-8u102-linux-x64.tar.gz

我使用putty连接到linux服务器(SUSE Linux Enterprise Server 11(x86_64))

我该如何处理?

0 个答案:

没有答案