小编kuc*_*har的帖子

不推荐使用正则表达式中未转义的左大括号

我将此存储库添加到我的 sources.list 文件中:

deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
Run Code Online (Sandbox Code Playgroud)

在终端中执行命令后,我需要在我的树莓派上安装 php7.0:

_ apt-get install -t stretch mysql-server mysql-client php7.0-mysql -y
Run Code Online (Sandbox Code Playgroud)

现在总是当我尝试安装任何软件包时,我都会收到很多这样的消息:

Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(.*?)(\\)?\${ <-- HERE ([^{}]+)}(.*)$/ at /usr/share/perl5/Debconf/Question.pm line 72.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^}]+)}/ at /usr/share/perl5/Debconf/Config.pm line 30.
Run Code Online (Sandbox Code Playgroud)

当然,我正确安装了它们,但消息看起来很奇怪。

任何人都可以告诉我这意味着什么以及如何解决它?

apt raspberry-pi raspbian

5
推荐指数
2
解决办法
2万
查看次数

zsh:找不到命令:服务

当我安装 zsh 并添加 oh-my-zsh 时,我无法执行 ifconfig 和 services 之类的命令。

要安装 zsh,我执行以下命令:

$ sudo apt-get install zsh
$ wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
$ chsh -s `which zsh`
Run Code Online (Sandbox Code Playgroud)

我的 .zshrc 看起来像这样:

# If you come from bash you might have to change your $PATH.
  export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
  export ZSH=/home/kuchar/.oh-my-zsh

# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is …
Run Code Online (Sandbox Code Playgroud)

zsh oh-my-zsh raspbian

0
推荐指数
1
解决办法
4万
查看次数

标签 统计

raspbian ×2

apt ×1

oh-my-zsh ×1

raspberry-pi ×1

zsh ×1