我想执行一个shell脚本:
-rwxr-x--x 1 root root 17234 Jun 6 18:31 create_mgw_3shelf_6xIPNI1P.sh
Run Code Online (Sandbox Code Playgroud)
我尝试执行标准程序,但出现此错误:
./create_mgw_3shelf_6xIPNI1P.sh
localhost 389 -l /opt/fews/sessions/AMGWM19/log/2013-06-06-143637_CLA-0
DEBUG cd/etc/opt/ldapfiles/ldif_in ;
./create_mgw_3shelf_6xIPNI1P.sh
localhost 389 -l /opt/fews/sessions/AMGWM19/log/2013-06-06-143637_CLA-0
**ERROR sh: ./create_mgw_3shelf_6xIPNI1P.sh: /bin/bash^M: bad interpreter: No such file or directory**
Run Code Online (Sandbox Code Playgroud)
这是什么意思?我是作为组root下的用户这样做的root。
这是否意味着该文件没有root用户的正确权限?
我想删除播放新歌曲时显示的 Spotify 气泡通知。这在您工作时会让人分心。
我仍然喜欢音量菜单中的集成。
Ubuntu 版本:14.04
Spotify 版本:0.9.10.17.g4129e1c9
Python虚拟环境用于创建隔离的python环境,避免依赖和版本冲突,也间接处理权限问题。但是在 Ubuntu 中设置和使用它的最简单方法是什么?
我有 Ubuntu 16.04 Xenial Xerus,当我想运行sudo apt-get updateorsudo apt-get autoclean或sudo apt-get install (package name)or 时sudo apt-get install -f,我收到以下消息:
Citire liste de pachete... 0%
Citire liste de pachete... Terminat
Se construie?te arborele de dependen??
Se citesc informa?iile de stare... Terminat
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 …Run Code Online (Sandbox Code Playgroud) 我下载了intel_sdk_for_opencl_2016_ubuntu_6.0.0.1049_x64,试图运行,install.sh但它说不支持的操作系统,所以我然后读到我需要从 RPM 文件之一制作 .deb 文件的地方,我用 2 做了:
opencl-1.2-devel_6.0.0.1049-2_amd64.deb
opencl-1.2-intel-devel_6.0.0.1049-2_amd64.deb
安装了它们sudo dpkg -i,但我仍然没有 libOpenCL.so 我需要
现在我被卡住了...... :(
我在 Ubuntu 12.04 LTS 中遇到了 Nautilus 问题。
当我运行命令时gksu nautilus /,出现密码询问框,我输入我的超级用户密码,然后密码框消失并且 Nautilus 没有打开。
当我尝试使用命令以普通用户身份打开 Nautilus 时nautilus,该文件夹被打开。
当我在终端中尝试时
$ sudo nautilus
Run Code Online (Sandbox Code Playgroud)
我收到以下错误
$ sudo nautilus /
** (nautilus:8523): WARNING **: Command line `dbus-launch --autolaunch=2c8ce9b7da2257c2609b749700000007 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n Could not parse arguments: Cannot open display:
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个错误?
我发现了sh -c命令。我在这里发布之前找到了它,但我找不到任何来自 Google 的帖子解释它,所以我想知道它是什么以及它的完整语法是什么。
最近看到很多人用
sudo apt
Run Code Online (Sandbox Code Playgroud)
代替
sudo apt-get
Run Code Online (Sandbox Code Playgroud)
此外,Ubuntu 一直告诉我通过以下方式安装东西 sudo apt
The program 'foo' is currently not installed. You can install it by typing:
sudo apt install foo
Run Code Online (Sandbox Code Playgroud)
(请记住,foo 是占位符,而不是应用程序)
因此,在社区中关于使用apt而不是的流行之后apt-get,我开始认为 apt-get 已被弃用并且不能再在我的 bash 程序中使用。
在我的 bash 程序中,
apt-get命令apt吗?apt-get危险的?我知道判断 CPU 是否支持 VMware Workstation 8 或 VMware Player 4 的命令:
$ grep flags /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp *lm* constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl *vmx* est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat dts tpr_shadow vnmi flexpriority ept vpid …Run Code Online (Sandbox Code Playgroud) 我一直在构建自己的快照并成功安装它一段时间了,但是就在今天,每次构建快照文件时,当我尝试安装它时,我都会...
error: cannot find signatures with metadata for snap "mysnap_1.0_amd64.snap"
Run Code Online (Sandbox Code Playgroud)
我完全不知所措。这是什么意思?我如何解决它?我想不出我做了什么导致这种情况开始发生。
apt ×2
bash ×2
command-line ×2
16.04 ×1
cpu ×1
metadata ×1
nautilus ×1
notification ×1
opencl ×1
python ×1
scripts ×1
sh ×1
snap ×1
spotify ×1
virtualenv ×1