You have two different issues, first being a perl version mismatch, second being what the title of the bug and apt are complaining about that /usr/share/nginx/html/index.html is being overwritten by another package.
You are using the NGINX upstream repository, and then also using the Ubuntu version. They don't work together. First you must completely remove the NGINX upstream packages. First, *backup your /etc/nginx directory to save your configurations*. If you put your site in /usr/share/nginx/html/index.html, back it up too because you cannot put your site there safely. Next, purge the NGINX upstream package - sudo apt-get purge nginx Thirdly, install from the repositories - sudo apt-get install nginx nginx-common nginx-core As for the perl versions mismatching, the only thing I can possibly attribute that to is a mismatch between the Upstream nginx builds and the Ubuntu builds - it's possible upstream needs to rebuild their packages. ** Changed in: nginx (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1586576 Title: package nginx 1.10.0-0ubuntu0.16.04.1 failed to install/upgrade: '/usr/share/nginx/html/index.html' を上書きしようとしています。これはパッケージ nginx-common 1.10.0-0ubuntu0.16.04.1 にも存在します To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1586576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs