将系统部署在 heroku 上之后,发现少了一库 libssl1.0-dev,试着在 heroku 中进行安装,最终未果,下面是试过的几种方法
#heroku run shell
#apt install libssl1.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to locate package libssl1.0-dev
E: Couldn't find any package by glob 'libssl1.0-dev'
E: Couldn't find any package by regex 'libssl1.0-dev'
#sudo apt install libssl1.0-dev
#显示没有sudo这个命令,就是heroku中不能执行sudo
#apt update
List directory /var/lib/apt/lists/partial is missing #新建这个文件夹也不行