我将此存储库添加到我的 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)
当然,我正确安装了它们,但消息看起来很奇怪。
任何人都可以告诉我这意味着什么以及如何解决它?
当我安装 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)