我(拼命地)试图在我的 14.04 上安装 VLC。
apt-cache policy vlc
Run Code Online (Sandbox Code Playgroud)
返回:
vlc:
Installed: (none)
Candidate: 2.1.6-0ubuntu14.04.1
Version table:
2.1.6-0ubuntu14.04.1 0
500 http://mirror.switch.ch/ftp/mirror/ubuntu/ trusty-updates/universe amd64 Packages
500 http://mirror.switch.ch/ftp/mirror/ubuntu/ trusty-security/universe amd64 Packages
2.1.2-2build2 0
500 http://mirror.switch.ch/ftp/mirror/ubuntu/ trusty/universe amd64 Packages
Run Code Online (Sandbox Code Playgroud)
当我尝试安装时,我遇到了臭名昭著的vlc-nox
问题:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在装有 Ubuntu 14.04 的 Sony Vaio 笔记本电脑上使用 Netgear A6100 无线 USB WIFI 适配器。安装 Ubuntu 后,预装的无线网卡丢失了来自 wifi 路由器的信号条,所以我买了这个 USB 无线适配器来解决我的连接问题。
这是输出lsusb
:
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 5986:02d3 Acer, Inc
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: …
Run Code Online (Sandbox Code Playgroud) 我尝试使用该命令gnome-control center -l
,但它给了我一个错误,说缺少某些共享对象。这是结果:
gnome-control-center -l
libwayland-egl.so.1: cannot open shared object file: No such file or directory
Failed to load module: /usr/lib/i386-linux-gnu/unity-control-center-1/panels/libuser-accounts.so
Unknown option -l
Run Code Online (Sandbox Code Playgroud)
运行/usr/bin/unity-control-center --help
以查看可用命令行选项的完整列表。
所以我尝试了这个,它也给出了相同的结果:
unity-control-center -l
libwayland-egl.so.1: cannot open shared object file: No such file or directory
Failed to load module: /usr/lib/i386-linux-gnu/unity-control-center-1/panels/libuser-accounts.so
Unknown option -l
Run Code Online (Sandbox Code Playgroud)
运行unity-control-center --help
以查看可用命令行选项的完整列表。
在此线程之后,我尝试了以下命令,这些命令给了我以下结果:
sudo apt-file update
sudo apt-file find libwayland-egl.so.1
libhybris: /usr/lib/i386-linux-gnu/libhybris-egl/libwayland-egl.so.1
libhybris: /usr/lib/i386-linux-gnu/libhybris-egl/libwayland-egl.so.1.0.0
libwayland-egl1-mesa: /usr/lib/i386-linux-gnu/libwayland-egl.so.1
libwayland-egl1-mesa: /usr/lib/i386-linux-gnu/libwayland-egl.so.1.0.0
libwayland-egl1-mesa-dbg: /usr/lib/debug/usr/lib/i386-linux-gnu/libwayland-egl.so.1.0.0
libwayland-egl1-mesa-lts-utopic: /usr/lib/i386-linux-gnu/libwayland-egl.so.1
libwayland-egl1-mesa-lts-utopic: /usr/lib/i386-linux-gnu/libwayland-egl.so.1.0.0 …
Run Code Online (Sandbox Code Playgroud) 我如何检索wifi的名称和密码。我通过电缆连接到路由器。ubuntu 有没有办法获取这些信息?
我已经使用 rvm 在 rails 上安装了 ruby。我正在尝试捆绑安装我在以前的电脑上安装的旧项目,但是当我运行 bundle install 命令时出现以下错误:
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/florin/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20151003-5986-vme5ji.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.so
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
make: *** [generator.so] Error 1
make failed, exit code 2
Gem files will remain installed in /home/florin/.rvm/gems/ruby-2.2.3/gems/json-1.8.3 for inspection.
Results logged to /home/florin/.rvm/gems/ruby-2.2.3/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), …
Run Code Online (Sandbox Code Playgroud) 如果这是一个愚蠢的问题,我很抱歉,但是当我看到“Remmina 远程桌面客户端”时,我正在 Dash 中搜索文件。从图标来看,它看起来不像默认软件。我是唯一使用这台电脑的人,所以我想问一下RRDC是自动安装的还是我不小心安装的?
我正在运行cordova,所以我想安装android-sdk。这是路径
Android-Studio Path = /home/apps/android-studio
Android- /Android/Sdk
Run Code Online (Sandbox Code Playgroud)
每当我尝试通过导出添加时.. 它似乎被包含在内。但我总是收到错误
ERROR: Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
Run Code Online (Sandbox Code Playgroud)
如何手动添加环境变量。
在 中/etc/environment
,我尝试手动添加环境变量。
但我得到了同样的错误。
这是我/opt/environment
到目前为止所拥有的
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
Run Code Online (Sandbox Code Playgroud)
接下来我应该添加什么以使命令工作 cordova run android
很长一段时间以来,我已经习惯于认为我想要在 cron 中的任何环境,我基本上都需要在 crontab 本身中进行设置 - 请参阅“不同的环境”,这里可能是最佳答案: Reasons why crontab does not work
但是...在我最近的 Ubuntu 14.04 安装中,我有一个看起来像这样的 crontab:
*/1 * * * * env > /tmp/cron.env
Run Code Online (Sandbox Code Playgroud)
一个看起来像这样的 /etc/environment 文件:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
RACK_ENV=production
LC_ALL=en_US.UTF-8
FROM_ETC_ENVIRONMENT=testing
Run Code Online (Sandbox Code Playgroud)
输出 cron.env 文件如下所示:
FROM_ETC_ENVIRONMENT=testing
HOME=/home/devops
LOGNAME=devops
RACK_ENV=production
PATH=/usr/bin:/bin
LANG=en_US.UTF-8
SHELL=/bin/sh
LC_ALL=en_US.UTF-8
PWD=/home/devops
Run Code Online (Sandbox Code Playgroud)
FROM_ETC_ENVIRONMENT 是我使用该唯一名称创建的变量,以确保它不可能来自其他任何地方。
我已经四处寻找有关何时可能发生变化的文档/等等......我想我的问题真的是这样的:
这是我可以从 Ubuntu 14.04 中依赖的行为吗?(有人知道它是什么时候引入的吗?或者它一直都是这样,我只是没有意识到这一点 - crontab 不起作用的原因链接中的最佳答案说 cron 不从 /etc/environment 读取完全没有,但根据我的测试,这似乎是错误的。
我是 Linux 新手,刚开始使用 ubuntu 14.04。我试图通过编辑 rc.local 文件在启动时运行 imwheel 进程。也许我做错了什么,我需要输入一个程序路径,就像终端中的名字一样?
当我尝试通过运行进行检查时:
sudo service rc.local start
Run Code Online (Sandbox Code Playgroud)
我收到以下消息:INFO:
imwheel started (pid=4906)
Could not open display, check shell DISPLAY variable, and export or setenv it!
Run Code Online (Sandbox Code Playgroud)
rc.local 文件:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just …
Run Code Online (Sandbox Code Playgroud) 我正在尝试安装即将出现此错误的 libvert 软件包:
**configure: error: You must install the libyajl library & headers to compile libvirt**
Run Code Online (Sandbox Code Playgroud)
如何解决此错误,我尝试了以下步骤:
从下载的包 git/lloyd
./configure
请帮我完成安装。./configure
我应该在哪一步之后做?