我试图访问,redis-cli但因为我太懒了,所以我输入red并按了两次 Tab,但我注意到有一个实际调用的二进制文件red位于/bin/.
当我做
cat /bin/red
Run Code Online (Sandbox Code Playgroud)
这显示了
#! /bin/sh
bindir=`echo "$0" | sed -e 's,[^/]*$,,'`
exec "${bindir}"ed --restricted "$@"
Run Code Online (Sandbox Code Playgroud)
知道那是什么吗?
笔记。当我执行时red,它只是等待一个输入,无论我输入什么,它要么保存它并等待另一个提示或返回?,请注意只有在点击q它时才会退出。同样,当插入 0-9 的数字并保持输入时,它会显示您在保存您之前输入的内容时插入的每个输入
例子:
a <<<-- input
bsa <<< input taken without ?
^C <<<--- hitting ctrl-c
? <<<--- output
Run Code Online (Sandbox Code Playgroud)
例子2:
v
?
b
?
a
qwrefdf <<-- saved because it didn't output ? after typing "a" up
^C
?
<<- waiting for …Run Code Online (Sandbox Code Playgroud) 可能重复:
如何在 Ubuntu 中安装和管理 RPM
我无法打开 git-0.99.1.rpm。所以,我需要 rpm 命令来安装 git-0.99.1.rpm。Ubuntu Linux 中是否提供 rpm 命令?如何安装 git-0.99.1.rpm 包?
似乎唯一的方法是安装一个非常不需要的 Apache 服务器(在我们的例子中)。
我们只想利用简单的内置 Web 服务器,就像一些非 ubuntu 操作系统(如 MS Windows 10)的幸运用户所拥有的那样。
我想用Gnome 3 中的Nemo文件管理器替换 Nautilus(默认 gnome shell 文件管理器)。
我怎样才能做到这一点 ?
我正在尝试添加一个ppa但出现错误Permission denied: '/etc/apt/sources.list.d/google-earth.list'::
~$ sudo add-apt-repository ppa:otto-kesselgulasch/gimp-edge
[...]
Press [ENTER] to continue or ctrl-c to cancel adding it
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 168, in <module>
if not sp.add_source_from_shortcut(shortcut, options.enable_source):
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 768, in add_source_from_shortcut
self.set_modified_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 492, in set_modified_sourceslist
self.save_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 658, in save_sourceslist
self.sourceslist.save()
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 413, in save
files[source.file] = open(source.file, "w")
PermissionError: [Errno 13] Permission denied: '/etc/apt/sources.list.d/google-earth.list'
Run Code Online (Sandbox Code Playgroud)
尝试以 root 身份运行而不是使用 sudo 时也会发生同样的情况:
~$ …Run Code Online (Sandbox Code Playgroud) 首先,我已经浏览了与此错误相关的所有先前问题,但没有任何效果。以下是我的输出sudo apt-get update:
在一篇旧帖子之后,我最终更改了我的整个sources.list文件。
Get:1 http://archive.canonical.com/ubuntu xenial InRelease [3,537 B]
Err:1 http://archive.canonical.com/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [3,534 B]
Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [3,542 B]
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [3,544 B]
Err:4 http://archive.ubuntu.com/ubuntu xenial-backports …Run Code Online (Sandbox Code Playgroud) touchegg我正在尝试在 Raspberry Pi 版本的 MATE(;20.04)上使用 PPA 版本focal。PPA 的版本为touchegg2.0+,而 Ubuntu Universe 的版本为 1.1+。
PPA 信息在这里:https ://launchpad.net/~touchegg/+archive/ubuntu/stable/+packages
我执行:
sudo add-apt-repository ppa:touchegg/stable
Run Code Online (Sandbox Code Playgroud)
并且 PPA 似乎已安装。接下来是apt-get update.
/etc/apt/sources.list.d/touchegg-ubuntu-stable-focal.list包含:
deb http http://ppa.launchpad.net/touchegg/stable/ubuntu focal main
Run Code Online (Sandbox Code Playgroud)
我还放入99-touchegg-repository了/etc/apt/preferences.d;它包含以下内容:
Package: touchegg
Pin: release o=LP-PPA-touchegg
Pin-priority: 450
Run Code Online (Sandbox Code Playgroud)
然而,apt policy touchegg仍然表明唯一可用的 touchegg 版本是宇宙中的版本。每当我apt install touchegg,我都会从 获取旧版本universe。
如何在 Ubuntu MATE 中使用toucheggPPA 中的版本?
每次我尝试访问 Mysql 时,我都会收到该错误:
0 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Run Code Online (Sandbox Code Playgroud)
没有任何效果:清除、删除、清理并重新安装 mysql,但没有任何效果。
有谁知道如何解决它?
尝试使用任何快照包,我遇到以下问题:
$ gimp
cannot create user data directory: /local/home/user/snap/gimp/40: Read-only file system
Run Code Online (Sandbox Code Playgroud)
(Gimp 只是一个例子)。
我有我$HOME的/local/home/$USER/(我无法改变这个!)并发现人们在 snap-store 论坛上有同样的问题:
https: //forum.snapcraft.io/t/how-can-i-use-snap-when- i-dont-use-home-user/3352和https://bugs.launchpad.net/snapcraft/+bug/1620771
在这个线程中,人们说/home是硬编码的snap,他们建议使用绑定安装来解决这个问题。
我尝试过的:
$ sudo mount --bind $HOME /home/$USER
Run Code Online (Sandbox Code Playgroud)
ls正确列出我的内容$HOME
$ ls /home/$USER
Run Code Online (Sandbox Code Playgroud)
我还将额外的主目录添加到/etc/apparmor.d/tunables/home.d/my-homes:
$ cat /etc/apparmor.d/tunables/home.d/my-homes
@{HOMEDIRS}+=/local/home/
Run Code Online (Sandbox Code Playgroud)
并/var/lib/snapd/apparmor/snap-confine/my-homes:
$ cat /var/lib/snapd/apparmor/snap-confine/my-homes
mount options=(rw rbind) @{HOMEDIRS}/ -> /tmp/snap.rootfs_*/home/,
Run Code Online (Sandbox Code Playgroud)
使用bind-mount AND 以及OR 更改文件再次运行快照,会出现与之前相同的错误。
我该如何解决这个问题?
$ snap list gimp
Name Version Rev Tracking Developer Notes
gimp 2.10.0 …Run Code Online (Sandbox Code Playgroud) 我的发行版:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
Run Code Online (Sandbox Code Playgroud)
我的内核:
uname -a
Linux n552vw 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
更新:
4天前,Ubuntu 20.04正式发布。
sudo do-release-upgrade -c
Checking for a new Ubuntu release
No new release found.
Run Code Online (Sandbox Code Playgroud)
-d标志) - 我想要最终版本。-d标志(update-manager -c -d)?