我正在安装 redis,每次运行此命令时都会sudo apt install redis-server出现无法恢复的致命错误
我已经尝试了很多解决方案来完全删除 redis、redis-server,但没有任何效果,这是错误
dpkg: unrecoverable fatal error, aborting:
unknown user 'redis' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
所以我尝试将它与 kaminari 进行比较:
2.5.1 :043 > pagy(Box.all, items: 1, page: 2)
(2.0ms) SELECT COUNT(*) FROM "boxes"
Box Load (1.0ms) SELECT "boxes".* FROM "boxes" LIMIT $1 OFFSET $2 [["LIMIT", 1], ["OFFSET", 1]]
=> [#<Pagy:0x00007fd7e88073a8 @vars={:page=>2, :items=>1, :outset=>0, :size=>[1, 4, 4, 1], :page_param=>:page, :params=>{}, :anchor=>"", :link_extra=>"", :item_path=>"pagy.info.item_name", :cycle=>false, :count=>106}, @count=106, @items=1, @outset=0, @page=2, @last=106, @pages=106, @offset=1, @from=2, @to=2, @prev=1, …Run Code Online (Sandbox Code Playgroud) 尝试在从远程存储库克隆的 rails 应用程序中安装 gem 时遇到多个错误,这是错误的屏幕截图,知道我仍然是 RoR 初级,知道我尝试了很多答案但没有任何效果
elta3lab@elta3lab-Inspiron-N5110:~/raye7-api$ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32`.
Fetching gem metadata from http://rubygems.org/.............
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...........................................................................
Using rake 12.3.1
Fetching concurrent-ruby 1.1.3
Your user account isn't allowed to install to the …Run Code Online (Sandbox Code Playgroud) 我使用 pip 在 ubuntu 上安装了 locustio
"pip install locustio"
Run Code Online (Sandbox Code Playgroud)
问题是每次我在控制台上运行任何 locust 命令时(例如)
locust --version
Run Code Online (Sandbox Code Playgroud)
控制台返回这个
zsh: command not found: locust
Run Code Online (Sandbox Code Playgroud)
有什么解决办法吗?
这是我第一次在我的系统上安装 linux,我觉得这里有很多乱七八糟的东西,当我尝试更新我的系统时遇到太多错误,当我使用终端和这个命令时,我感到很无助:
sudo apt update
Run Code Online (Sandbox Code Playgroud)
我特别从这 3 种类型中得到了很多错误:
知道我搜索了很多主题并且无法解决我的系统问题。
这是我在编写“sudo apt update”后得到的输出
Ign:1 cdrom://Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty InRelease
Err:2 cdrom://Ubuntu 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign:3 http://download.videolan.org/pub/debian/stable InRelease
Ign:4 http://deb.torproject.org/torproject.org artful InRelease
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://download.videolan.org/pub/debian/stable Release
Ign:7 http://eg.archive.ubuntu.com/ubuntu zesty InRelease
Hit:8 http://archive.canonical.com/ubuntu artful InRelease …Run Code Online (Sandbox Code Playgroud) installation ×2
apt ×1
bundler ×1
command ×1
fatal-error ×1
gemfile ×1
kaminari ×1
locust ×1
pagination ×1
pip ×1
python ×1
redis ×1
redis-server ×1
rubygems ×1
sudo ×1
ubuntu ×1
updates ×1
updating ×1
zsh ×1