> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1000w123.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debian

> Debian

[Debian images for VMware and VirtualBox](https://www.osboxes.org/debian/#debian-12-6-vmware)

从这里下载已经做好的镜像，虽然是桌面版的。

# 安装包时锁住的问题

```
dpkg frontend lock was locked by another process with pid 1073 Note: removing the lock file is always wrong, can damage the locked area and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ#db-lock>
```

这个错误通常是由于另一个进程正在使用 dpkg 时发生的。要解决这个问题，您可以尝试以下步骤：

1. **查找锁定进程的 PID**：

   ```bash theme={null}
   sudo lsof /var/lib/dpkg/lock
   ```

   这条命令会显示锁定进程的 PID。

2. **杀死锁定进程**：

   ```bash theme={null}
   sudo kill -9 PID
   ```

   将 `PID` 替换为您在上一步中找到的进程 ID。

3. **重新配置 dpkg**：

   ```bash theme={null}
   sudo rm /var/lib/dpkg/lock
   sudo dpkg --configure -a
   ```

请注意，删除锁文件可能会对系统造成损害，因此建议在尝试这些步骤之前关闭所有可能使用 dpkg 的程序，例如 Synaptic 或 apt-get。

如果这些步骤没有解决问题，您可能需要重新启动系统。这样可以确保没有其他进程占用 dpkg。

# 安装 openssh

```bash theme={null}
sudo apt udpate
sudo apt install openssh-server
```

安装完后就可以立即通过 ssh 连接上这个虚拟镜像，一般桌面版不安装  openssh。
这个公共镜像的用户名和密码是：`osboxes`   `osboxes.org`。
