我该如何解决这个问题?
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
我尝试安装以下命令
sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev python3-pip
sudo pip install lxml
Run Code Online (Sandbox Code Playgroud) 我需要编译和安装我自己的仿生内核来修复 xhci-pci.c 中的一个错字
我在过去成功地做到了这一点,我认为最晚在 18.04,按照以下说明操作:
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
但是现在,当我尝试安装我的新内核时(以及来自开发人员的测试内核,试图帮助我运行修复旗杆) dpkg -i 抱怨,似乎我的更改没有反映在重新启动时。我该如何解决?
更新:将我在桌面上编译的内核安装到不同的服务器上似乎可以工作。我推测这是因为在服务器上运行的内核版本比在桌面上运行的内核版本稍有改动。我认为在桌面上运行的次要修订号与我试图编译和安装的相同。相反,开发人员提供的测试内核是在我的台式机和服务器之后的一些小修改。以前我将责任归咎于“未签名”软件包,现在我认为问题出在 dpkg 上。如何强制 dpkg 安装“冲突”软件包?如何强制它安装逆行内核?
错误(在桌面系统上)如下:
dpkg: regarding linux-image-unsigned-4.15.0-29-generic_4.15.0-29.31+jeff_amd64.deb containing linux-image-unsigned-4.15.0-29-generic:
linux-image-unsigned-4.15.0-29-generic conflicts with linux-image-4.15.0-29-generic
linux-image-4.15.0-29-generic (version 4.15.0-29.31) is present and installed.
dpkg: error processing archive linux-image-unsigned-4.15.0-29-generic_4.15.0-29.31+jeff_amd64.deb (--install):
conflicting packages - not installing linux-image-unsigned-4.15.0-29-generic
dpkg: regarding linux-image-unsigned-4.15.0-29-lowlatency_4.15.0-29.31+jeff_amd64.deb containing linux-image-unsigned-4.15.0-29-lowlatency:
linux-image-unsigned-4.15.0-29-lowlatency conflicts with linux-image-4.15.0-29-lowlatency
linux-image-4.15.0-29-lowlatency (version 4.15.0-29.31) is present and installed.
dpkg: error processing archive linux-image-unsigned-4.15.0-29-lowlatency_4.15.0-29.31+jeff_amd64.deb (--install):
conflicting packages - not installing linux-image-unsigned-4.15.0-29-lowlatency
Run Code Online (Sandbox Code Playgroud) 我正在设置一个新的 Ubuntu 服务器 (16.04),最多 50 人可以同时访问。我已经按照本教程使用 xfce 设置 XRDP,到目前为止一切都很好,问题是只能同时登录 10 个用户。任何人都可以帮忙。谢谢你。
没有简单的解释方法,但这是我在演示中的问题。我有一个带有主目录备份的文件服务器。他们读起来像:
/home/ron/Downloads
/home/ron/Documents
/home/rob/Downloads
/home/rob/Documents
/home/tom/Downloads
/home/tom/Documents
/home/don/Downloads
/home/don/Documents
Run Code Online (Sandbox Code Playgroud)
我将如何使用一个命令删除所有名为 Downloads 的文件夹,而不是调用用户的名称,而是使用速记?
我刚在想:
rm -r /home/*/Downloads
Run Code Online (Sandbox Code Playgroud)
什么是最好的方法来做到这一点?
注意:我在不止一台服务器上有几百个文件夹要像这样清除。
谢谢。
我创建了一个目录并使用 chown 使我的用户和组成为所有者。如果我在父文件夹中创建一个新文件夹,则权限选项卡下“其他人”的权限设置为“访问文件”而不是“创建和删除文件”。
如何确保父文件夹的所有子文件夹和文件都默认为父权限?
Ubuntu 16.04LTS
/opt/lampp/htdocs directory
Run Code Online (Sandbox Code Playgroud) 我已经在 Ubuntu 上使用 teamviewer 很长时间了。自从我升级到版本 12 后,它可以正常工作几天,有时是几周,然后突然停止启动。我已经至少管理了 3 次才能让它再次工作,卸载它,然后使用 locate 命令删除它的每一条痕迹。这一次也没有用。该软件包Teamviewer_12.0.71510_i386.deb在 Ubuntu 16.04 x64 上运行,之前已成功使用相同的软件包。登录/var/log/teamviewer12是:
cat /var/log/teamviewer12/TeamViewer12_Logfile.log
2017/01/20 12:32:12.727 4003 4146104256 S Logger started.
2017/01/20 12:32:12.728 4003 4146104256 S Found 0 Minidump files ...
2017/01/20 12:32:12.728 4003 4146104256 S Found 0 core dump files ...
2017/01/20 12:32:12.729 4003 4146104256 S+ Thread: IOServiceWorker_0_2
2017/01/20 12:32:12.729 4003 4146104256 S+ Thread: IOServiceWorker_0_0
2017/01/20 12:32:12.729 4003 4146104256 S+ Thread: IOServiceWorker_0_1
2017/01/20 12:32:12.729 4003 4146104256 S+ Thread: IOServiceWorker_0_3
2017/01/20 12:32:12.730 4003 …Run Code Online (Sandbox Code Playgroud) 我意识到 grep 在 Ubuntu 16.04 中不能像往常一样工作。
证明:
/lib/systemd/system# grep root *
grep: invalid option -- '.'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
/lib/systemd/system# grep root .
grep: .: Is a directory
Run Code Online (Sandbox Code Playgroud)
它只能以这种方式工作。
/lib/systemd/system# grep root ./*
[...]
Run Code Online (Sandbox Code Playgroud)
Ubuntu 16.04 有什么改变吗?
当我journalctl -xe以非 root 用户身份运行时,出现以下错误:
bgeron@machine:~$ journalctl -xe
Failed to search journal ACL: Operation not supported
No journal files were opened due to insufficient permissions.
Run Code Online (Sandbox Code Playgroud) 16.04 ×3
bash ×1
chmod ×1
chown ×1
command-line ×1
compiling ×1
directory ×1
dpkg ×1
files ×1
grep ×1
kernel ×1
partitioning ×1
permissions ×1
python ×1
rm ×1
server ×1
teamviewer ×1
zfs ×1