安装 TPCC-mysql 出现E: Unable to locate package tpcc-mysql怎么解决
时间: 2024-02-16 12:01:11 浏览: 30
这个问题可能是因为你的系统没有添加 TPCC-mysql 包的源,你需要手动添加 TPCC-mysql 的源,并更新软件包列表,然后再安装 TPCC-mysql。
以下是添加 TPCC-mysql 源的步骤:
1. 打开终端并切换到 root 用户
2. 执行以下命令添加 TPCC-mysql 的源
```
echo "deb http://http.us.debian.org/debian stretch main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://http.us.debian.org/debian stretch main contrib non-free" >> /etc/apt/sources.list
echo "deb http://http.us.debian.org/debian stretch-updates main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://http.us.debian.org/debian stretch-updates main contrib non-free" >> /etc/apt/sources.list
echo "deb http://http.us.debian.org/debian-security/ stretch/updates main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://http.us.debian.org/debian-security/ stretch/updates main contrib non-free" >> /etc/apt/sources.list
apt-get update
```
3. 安装 TPCC-mysql
```
apt-get install tpcc-mysql
```
执行完以上步骤之后,应该就可以成功安装 TPCC-mysql 了。