When using the apt-get command to install the required dependent packages under the Ubuntu system, an error "E: Unable to locate the package problem" may be reported

Because the names of the dependent packages downloaded by the yum command in centos and the apt-get command in ubuntu may be inconsistent, an error "E: Unable to locate the package problem" is reported.

For example, when installing nginx, the lib command required to install nginx in the centos system is:

yum -y install pcre pcre-devel
yum -y install zlib zlib-devel
yum -y install openssl openssl-devel

The dependent lib instructions required to install nginx in the ubuntu system are:

sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install zlib1g-dev
sudo apt-get install openssl libssl-dev

Reference: https://blog.csdn.net/weixin_45302088/article/details/110140052

Guess you like

Origin blog.csdn.net/qq_44678607/article/details/129757899