【docker】三、Permission denied与sudo命令

Table of Contents

Permission denied:

bash: sudo: command not found

No such file or directory

在64位的Linux上运行32位程序的时候会出现这种情况:

不要瞎捣鼓,32位就去用32位的镜像!


Permission denied:

执行:sudo chmod -R 777 myResources

            sudo chmod -R 777 拒绝的文件名字

bash: sudo: command not found

执行:

apt-get update

apt-get install sudo

No such file or directory

在64位的Linux上运行32位程序的时候会出现这种情况:

执行bin文件时提示:No such file or directory   (https://blog.csdn.net/qq_33438733/article/details/79672774)

解决方法:

sudo apt-get install ia32-libs

 错误提示:

Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32ncurses5 lib32z1

E: Package 'ia32-libs' has no installation candidate


To run 32bit executable file in a 64 bit multi-arch Ubuntu system, you have to add i386 architecture and install libc6:i386,libncurses5:i386,libstdc++6:i386 these three library packages.

 
  1. sudo dpkg --add-architecture i386

  2. sudo apt-get update

  3. sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

  4. sudo ./adb

 The following packages have unmet dependencies:
 libc6:i386 : Depends: libgcc1:i386 but it is not going to be installed
 libncurses5:i386 : Depends: libtinfo5:i386 (= 6.0+20160213-1ubuntu1) but it is not going to be installedThe following packages have unmet dependencies:
 libc6:i386 : Depends: libgcc1:i386 but it is not going to be installed
 libncurses5:i386 : Depends: libtinfo5:i386 (= 6.0+20160213-1ubuntu1) but it is not going to be installed

https://blog.csdn.net/duanlove/article/details/54666441

以上并没有解决我的问题

总结:

不要瞎捣鼓,32位就去用32位的镜像!

发布了68 篇原创文章 · 获赞 20 · 访问量 6893

猜你喜欢

转载自blog.csdn.net/qq_43633973/article/details/101360759