Linux install vim errors All In One
1.Linux shell command ln All In One2.Linux shell command cut All In One3.Linux shell standard input bugs All In One4.Linux shell command base64 All In One5.How to use the shell command to get the version of Linux Distributions All In One6.Linux shell command make & Makefile All In One7.Linux shell command strings All In One8.sudo & su & Rust All In One9.Linux shell command make All In One10.Linux shell script shebang env All In One11.Linux shell script switch...case All In One12.Linux shell command ls sort by date All In One13.Linux shell script read file line by line All In One14.Linux shell regular expression All In One15.How to fix IP filter regular expressions written using grep command in Linux shell script All In One16.Linux shell script programming All In One17.Linux shell script redirection All In One18.How to use Linux shell command filter the IP address All In One19.how to create one interactive mode command line configuration tool with shell language on Linux All In One20.Linux shell script get date and time All In One21.Linux shell command screen All In One22.Linux shell `#!` interpreter All In One23.Linux shell set command All In One24.Linux shell script auto generate batch files All In One25.Linux bash script HereDoc All In One26.Linux shell system environment variables All In One27.Linux shell command curl All In One28.Linux shell command chroot All In One29.Linux shell command chmod All In One30.Linux shell number variables add All In One31.Linux bash shell "${1}" All In One32.Linux xattr shell command All In One33.Multiple Ways to Change Terminal Shell in Linux All In One34.Linux shell stdin & stdout & stderr All In One35.Linux shell man command All In One36.Linux shell command line editor All In One37.Linux shell command uname All In One38.Linux bash shell script block comment All In One39.Linux bash shell script batch download files All In One40.Linux shell script bug and error All In One41.Linux bash write long string with multi-lines comments All In One42.Linux set command All In One43.Linux echo command All In One44.Linux echo 换行 All In One45.Linux Bash shell 脚本定时器 All In One46.Linux System Variables All In One47.linux bash shell auto read write template48.Linux bash script read args All In One49.Linux Bash Script conditions syntax All In One50.Linux Bash Script loop syntax All In One51.Linux shell script All In One52.如何通过 Linux terminal 查看一个文件的 meta 信息 All In One53.Linux shell uname -a All In One54.Linux shell command create file methods All In One55. how to write string to file in linux bash All In One56.linux bash shell & lsof & grep & ps57.Linux Bash Shell All In One58.Linux shell command copy file All In One59.Linux shell command & zip & tar All In One60.Linux shell command show project directory tree All In One61.Linux shell commands man chmod All In One62.Linux & bash & shell & PID & PPID63.Linux bash shell All In One64.Linux shell command symbolic link & soft link All In One65.Linux bash shell All In One66.Linux shell (.sh 文件) 基础命令 常用命令 汇总67.How to use a shell script to check whether a command had been installed in the Linux server All In One68.How to print a string with a variable by using the echo command in the shell script All In One
69.Linux install vim errors All In One
Linux install vim errors All In One
Vim
errors ❌
Raspberry Pi 安装 vim 解压缩时候卡住了,手动中断了 terminal,再次 SSH 连接时候,出现一下错误信息!
$ sudo apt-get install vim
$ vim --help
$ vim --version
# VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 04 2023 10:24:44)
pi@raspberrypi:~ $ sudo apt-get install vim
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
libfuse2
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
vim-runtime
建议安装:
ctags vim-doc vim-scripts
下列【新】软件包将被安装:
vim
下列软件包将被升级:
vim-runtime
升级了 1 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 24 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
需要下载 0 B/7,614 kB 的归档。
解压缩后会消耗 36.4 MB 的额外空间。
您希望继续执行吗? [Y/n] y
读取变更记录(changelogs)... 完成
(正在读取数据库 ... 系统当前共安装有 96879 个文件和目录。)
准备解压 .../vim-runtime_2%3a8.2.2434-3+deb11u1_all.deb ...
正在解压 vim-runtime (2:8.2.2434-3+deb11u1) 并覆盖 (2:8.2.2434-3+deb11u1) ...
pi@raspberrypi:~ $ sudo apt-get install vim
E: 无法获得锁 /var/lib/dpkg/lock-frontend。锁正由进程 11246(apt-get)持有
N: 请注意,直接移除锁文件不一定是合适的解决方案,且可能损坏您的系统。
E: 无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend),是否有其他进程正占用它?
pi@raspberrypi:~ $
$ sudo apt-get install vim
E: dpkg 被中断,您必须手工运行 ‘sudo dpkg --configure -a’ 解决此问题。
$ sudo apt-get install vim
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
vim 已经是最新版 (2:8.2.2434-3+deb11u1)。
下列软件包是自动安装的并且现在不需要了:
libfuse2
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 24 个软件包未被升级。
pi@raspberrypi:~ $
$ sudo apt autoremove
solutions
- kill 进程
$ ps -aux | grep apt-get
# PID, process id
# sudo kill -9 PID
$ sudo kill -9 11245
$ sudo kill -9 11246
$ sudo dpkg --configure -a
正在处理用于 man-db (2.9.4-2) 的触发器 ...
- 强制解锁
删除 lock 文件
$ sudo rm /var/cache/apt/archives/lock
$ sudo rm /var/lib/dpkg/lock
- 更新软件库
$ sudo apt-get update
- 重启
系统
万能懒人方法 💩
关机重启
电脑
demos
$ cat /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# Automatically load overlays for detected cameras
camera_auto_detect=1
# Automatically load overlays for detected DSI displays
display_auto_detect=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
# Run in 64-bit mode
arm_64bit=1
# Disable compensation for displays with overscan
disable_overscan=1
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[all]
[pi4]
# Run as fast as firmware / board allows
arm_boost=1
[all]
# https://www.cnblogs.com/xgqfrms/p/17437862.html
# GPU 分配的内存
gpu_mem=100
raspbery Pi 4B 8G 版,使用 USB 启动引导系统,导致
GUI
和Terminal
操作都异常卡顿 ❌
??? USB 3.0
接口 IO 读写问题
fix GitHub 443
error ❌
nvm
&Node.js
https://github.com/nvm-sh/nvm#install--update-script
$ nvm ls-remote | grep "Latest LTS"
v4.9.1 (Latest LTS: Argon)
v6.17.1 (Latest LTS: Boron)
v8.17.0 (Latest LTS: Carbon)
v10.24.1 (Latest LTS: Dubnium)
v12.22.12 (Latest LTS: Erbium)
v14.21.3 (Latest LTS: Fermium)
v16.20.0 (Latest LTS: Gallium)
v18.16.0 (Latest LTS: Hydrogen)
pi@raspberrypi:~ $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接
$ cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
$ sudo vim /etc/hosts
$ cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
# fix github 443 ❌
185.199.108.133 raw.githubusercontent.com
Linux 源 Raspberry Pi
切换成清华
的镜像
$ cat /etc/apt/sources.list.d/raspi.list
$ sudo nano /etc/apt/sources.list.d/raspi.list
$ sudo vim /etc/apt/sources.list.d/raspi.list
# Debian 11 (bullseye)
# deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main
# Debian 10 (buster)
# deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main
https://mirrors.tuna.tsinghua.edu.cn/help/raspberrypi/
apt vs apt-get
$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bullseye main contrib non-free
#deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
#deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
$ sudo apt install vim
$ sudo apt-get install vim
refs
/etc/apt/sources.list.d/raspi.list
切换镜像
https://www.cnblogs.com/xgqfrms/p/17301579.html
https://www.xinyueseo.com/linux/273.html
©xgqfrms 2012-2025
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/17440395.html
未经授权禁止转载,违者必究!
合集:
Linux Shell
, Raspberry Pi
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
2022-05-29 Vue 3 slot All In One
2022-05-29 Vue Suspense All In One
2022-05-29 React Design Patterns All In One
2022-05-29 代码改变世界 All In One
2022-05-29 Vue Teleport Modal All In One
2021-05-29 js auto append copyright info, after copy text All In One
2021-05-29 如何使用 js 破解页面禁用复制功能 All In One