Ubuntu

Ubuntu用户和开发人员的问答


3
将ssh私钥复制到另一台计算机
我需要使用另一台计算机来访问我的ssh服务器。这是因为最近在我的大学实施的vpn在我当前的计算机上不起作用,并且无法访问服务器。 我通过加密的ssh密钥进行ssh。我可以将这些密钥复制到新计算机上(该VPN可以在其上运行)。我尝试将id_rsa和id_rsa.pub文件复制到文件~/.ssh夹中,但无法识别密钥,也没有提示输入密码来解密密钥。 编辑:我无法访问服务器为新计算机生成新的密钥对,并且在国外,因此无法实际访问它。 谢谢。
52 ssh 

3
如何恢复版本升级?
昨天我开始从12.10升级到13.04,但由于时间太长而中断了升级。现在,如果我重新启动它,它将不会继续进行。 是否有可能清除我打断它留下的混乱并彻底重新启动此更新?
52 upgrade 

3
在清除较旧的linux映像后可以安全删除/ usr / src / linux-headers吗?
我正在运行Ubuntu 12.04,以及两个活动的Linux映像3.2.0-37和3.2.0-36。在/ usr / src /目录中,我找到: linux-headers-3.2.0-23 linux-headers-3.2.0-23-generic linux-headers-3.2.0-26 linux-headers-3.2.0-26-generic linux-headers-3.2.0-29 linux-headers-3.2.0-29-generic linux-headers-3.2.0-31 linux-headers-3.2.0-31-generic linux-headers-3.2.0-32 linux-headers-3.2.0-32-generic linux-headers-3.2.0-33 linux-headers-3.2.0-33-generic linux-headers-3.2.0-34 linux-headers-3.2.0-34-generic linux-headers-3.2.0-35 linux-headers-3.2.0-35-generic linux-headers-3.2.0-36 linux-headers-3.2.0-36-generic linux-headers-3.2.0-37 linux-headers-3.2.0-37-generic 今天我sudo apt-get purge linux-image-x.x.x.x-generic *34和* 35 我必须添加/ boot仅包含* 36和* 37。 除* 37和* 36以外的所有其他标记是否安全?先感谢您。
52 apt  kernel 

2
为什么passwd命令显示“ UNIX密码”?
我对Linux完全陌生。在观看有关Ubuntu的教学视频时,我遇到了该命令passwd。当我测试时,它显示; (current) UNIX password: Enter new UNIX password: Retype new UNIX password: 为什么说UNIX密码?与UNIX有关系吗?



7
由于启动正在运行的挂起作业而无法引导系统
我已经在Ubuntu 16.04 Gnome上安装了ubuntu-desktop,选择了lightdm,现在重新启动后,按CTRL + ALT + F2会收到以下错误消息: A start job is running for Hold until boot process finishes up (Xmin Xs/no limit) 持续进行20分钟以上。我该怎么做才能解决此问题甚至进行故障排除?
51 boot  16.04 

6
如何将pip升级到最新?
我安装了pip get-pip.py之后pip freeze抛出以下错误 Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/freeze.py", line 74, in run req = pip.FrozenRequirement.from_dist(dist, dependency_links, find_tags=find_tags) File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 299, in from_dist assert len(specs) == 1 and specs[0][0] == '==' AssertionError Storing debug log for failure …
51 upgrade  python  pip 


1
如何将库路径添加到./configure命令?
我想./configure链接到一个图书馆和一些包含文件。我的库存储在中/home/foo/sw/lib/,我的文件存储在中/home/foo/sw/include。 ./configure --help 抛出以下内容: 一些有影响力的环境变量: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers …
51 compiling 

13
MongoDB 2.6无法在Ubuntu 15.04上启动
我在干净安装的Ubuntu 15.04上安装了MongoDB 2.6: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list sudo apt-get update sudo apt-get install -y mongodb-org 它完成没有任何问题。但是,当我尝试启动它时,出现以下错误: $ sudo service mongod start Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory. 我怎样才能解决这个问题?
51 15.04  mongodb 

12
如何自动更新Atom编辑器?
Ubuntu尚不支持自动更新Atom功能。从他们的GitHub存储库中: 当前仅提供64位版本。 从Atom版本页面下载atom-amd64.deb。在下载的软件包上运行sudo dpkg --install atomic-amd64.deb。使用已安装的atom命令启动Atom。Linux版本当前不会自动更新,因此您需要重复这些步骤以升级到将来的版本。 我尝试使用Webupd8 PPA,但这对我不起作用。
51 updates  atom 

3
编译OpenGL程序(缺少GL / gl.h)
我是一个完整的Linux / Ubuntu新手,对于这个问题的任何愚蠢之处或后续问题,我深表歉意。 我正在尝试将软件工程班的小组编写的程序写到我的家用计算机上。在学校里,我们有Linux,它将在那编译并运行良好。我下载了VMWare,在虚拟机上安装了Ubuntu,现在正试图打开我的程序。 每当我尝试运行我的make文件时,都会收到一条错误消息,内容为 gcc -I../include -pthread -O1 -c rain.c In file included from rain.c:19:0: ../include/GL/glfw.h:176:21: fatal error: GL/gl.h: No such file or directory compilation terminated. make: *** [rain.o] Error 1 在我的学校计算机上可以找到该文件时,有人会碰巧知道为什么为什么找不到该文件吗?我需要做什么来下载它或将它放在正确的位置?
51 compiling  opengl 

5
安装自定义新贵服务的正确方法
我在服务器上使用新贵服务。编写conf文件并将其放入/etc/init非常容易,但这似乎并未完全安装。首先,service --status-all没有列出我的新服务。我检查,如果我做一个链接/etc/init.d到/lib/init/ubstart-job它会在状态显示出来。但是手动执行此操作使我觉得我做的不正确,并且可能还有其他未完成的配置步骤。 什么是正确安装新贵服务的正确方法,以便在处理该服务的所有工具中正确注册该新贵服务?
51 upstart 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.