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