Closed mlh758 closed 6 years ago
We do not support ubuntu 18.10 yet.
I have the same issue with Debian 8 (stretch). Seems like your package depends on the official nginx-common
package, but I'm using the one comming from NGINX itself and it is called nginx
(without -common
).
I have a very similar issue with a fresh install of Ubuntu 18.04.1 (Digital Ocean Droplet):
The following packages have unmet dependencies:
libnginx-mod-http-passenger : Depends: nginx-common (= 1.14.0-0ubuntu1) but 1.14.0-0ubuntu1.1 is to be installed
E: Unable to correct problems, you have held broken packages.
Is there a workaround for this?
@noniq Yours is a legit problem, though it is a separate problem. We'll update the packages soon, but for now you should install Passenger from source.
I've split your issue into a separate ticket: #2122.
I have the same issue libnginx-mod-http-passenger : Depends: nginx-common (= 1.14.0-0ubuntu1.1) but 1.14.0-0ubuntu1 is to be installed on ubuntu 18.04.1
@Myusuf060696 you need downgrade nginx to 1.14.0-0ubuntu1 and passenger to 1:5.3.4-1~bionic1
I have the same issue libnginx-mod-http-passenger : Depends: nginx-common (= 1.14.0-0ubuntu1.1) but 1.14.0-0ubuntu1 is to be installed on ubuntu 18.04.1
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-auth-pam_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-cache-purge_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-dav-ext_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-echo_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-fancyindex_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-geoip_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-headers-more-filter_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-image-filter_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-lua_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-ndk_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-perl_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-subs-filter_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-uploadprogress_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-upstream-fair_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-http-xslt-filter_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-mail_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-nchan_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-rtmp_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/libnginx-mod-stream_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/nginx-common_1.14.0-0ubuntu1.1_all.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/nginx-core_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/nginx-doc_1.14.0-0ubuntu1.1_all.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/nginx-extras_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/nginx-full_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/nginx-light_1.14.0-0ubuntu1.1_amd64.deb
sudo lynx https://launchpad.net/ubuntu/+source/nginx/1.14.0-0ubuntu1.1/+build/15345682/+files/nginx_1.14.0-0ubuntu1.1_all.deb
sudo dpkg -i libnginx-mod-http-auth-pam_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-cache-purge_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-dav-ext_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-echo_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-fancyindex_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-geoip_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-headers-more-filter_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-image-filter_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-lua_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-ndk_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-perl_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-subs-filter_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-uploadprogress_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-upstream-fair_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-http-xslt-filter_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-mail_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-nchan_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-rtmp_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i libnginx-mod-stream_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i nginx-common_1.14.0-0ubuntu1.1_all.deb
sudo dpkg -i nginx-core_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i nginx-doc_1.14.0-0ubuntu1.1_all.deb
sudo dpkg -i nginx-extras_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i nginx-full_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i nginx-light_1.14.0-0ubuntu1.1_amd64.deb
sudo dpkg -i nginx_1.14.0-0ubuntu1.1_all.deb
Still getting this error:
> sudo apt-get install -y libnginx-mod-http-passenger
The following packages have unmet dependencies:
libnginx-mod-http-passenger : Depends: nginx-common (< 1.14.1) but 1.15.5-0ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.`
> nginx -v
nginx version: nginx/1.15.5 (Ubuntu)
How do I fix this?
@CamJN - is Ubuntu 18.10 going to be supported sometime soon or would you recommend using a different environment?
@cferry322 Cosmic has been supported since 6.0.1. @shaunakv1 I'm not sure why that's happenining. I just tested a clean ubuntu cosmic image and was able to install nginx and libnginx-mod-http-passenger and wound up with Nginx 1.15.5-0ubuntu2.1 just like the error says you should have.
Perhaps try an apt clean && apt update
first, and try again?
No luck. tried updating the packages. Nginx is still at the same version.
@shaunakv1 you have bionic in your /etc/apt/sources.list.d/passenger.list
instead of cosmic, that's probably the issue. If you saw that in our docs then that is a bug in our docs it should be cosmic.
@CamJN that was it! changing the bionic
to cosmic
in /etc/apt/sources.list.d/passenger.list
and installing again worked like a charm.
I was indeed working from the official passenger docs. Those need to be updated!
Thanks for you help!
I have the same problem. I changed bionic
to cosmic
it seems didn't solve the problem
@NSLog0 can you post the exact series of steps you took, and the output from apt-get
that you're seeing?
@NSLog0 can you post the exact series of steps you took, and the output from
apt-get
that you're seeing?
I was following a guide posted on Medium (obviously that is not your guide, but the steps are about spinning up a Virtual Server on Digital Ocean -
It looks like someone from your team mentioned the issue in a blog post here https://blog.phusion.nl/2018/10/03/passenger-5-3-5/
I am failing on this command
sudo apt-get install -y libnginx-mod-http-passenger
I get the failure message
"libnginx-mod-http-passenger : Depends: passenger (= 1:5.1.12-1~zesty1) but it is not going to be installed Depends: nginx-common (= 1.10.3-1ubuntu3.1) but 1.14.0-0ubuntu1.2 is to be installed"
In the guide I am following, it is the step that is underneath the "Web Server" header. It seems like from the comments in the blog post that it may not be an operating system issue. Hope this helps.
It seems to be related to the line
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger bionic main > /etc/apt/sources.list.d/passenger.list'
I was trying to run 'zesty' instead of 'bionic' (Bionic worked)
Follow the steps posted here -- https://www.phusionpassenger.com/library/install/nginx/install/oss/bionic/#step-1:-install-passenger-packages (also shown in the image below).
Solutions provided NOT working
The following packages have unmet dependencies: libnginx-mod-http-passenger : Depends: nginx-common (< 1.14.1) but 1.15.5-0ubuntu2.1 is to be installed E: Unable to correct problems, you have held broken packages.
@NSLog0 can you post the exact series of steps you took, and the output from
apt-get
that you're seeing?I was following a guide posted on Medium (obviously that is not your guide, but the steps are about spinning up a Virtual Server on Digital Ocean -
It looks like someone from your team mentioned the issue in a blog post here https://blog.phusion.nl/2018/10/03/passenger-5-3-5/
I am failing on this command
sudo apt-get install -y libnginx-mod-http-passenger
I get the failure message
"libnginx-mod-http-passenger : Depends: passenger (= 1:5.1.12-1~zesty1) but it is not going to be installed Depends: nginx-common (= 1.10.3-1ubuntu3.1) but 1.14.0-0ubuntu1.2 is to be installed"
In the guide I am following, it is the step that is underneath the "Web Server" header. It seems like from the comments in the blog post that it may not be an operating system issue. Hope this helps.
--Solution for me on Ubuntu 18.04 Digital Ocean Droplet--
It seems to be related to the line
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger bionic main > /etc/apt/sources.list.d/passenger.list'
I was trying to run 'zesty' instead of 'bionic' (Bionic worked)
Follow the steps posted here -- https://www.phusionpassenger.com/library/install/nginx/install/oss/bionic/#step-1:-install-passenger-packages (also shown in the image below).
And this was the solution. The docs are still incorrect, if you want people to use your product or even buy the premium make sure the damn documentation is up2date. sorry for the harsh words but this is juts plain stupid and cost me another 30 minutes down the drain!
The maintained docs are at https://www.phusionpassenger.com/docs/advanced_guides/install_and_upgrade/apache/install/
@CamJN I am using Ubuntu 19.04 and was facing the following issue to setup Passenger/Nginx on running the command
sudo apt-get install -y libnginx-mod-http-passenger
The following packages have unmet dependencies:
libnginx-mod-http-passenger : Depends: nginx-common (< 1.14.1) but 1.15.9-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
I executed sudo apt clean && sudo apt update
but still got the same issue on installing libnginx-mod-http-passenger
.
Then I updated "bionic" to "disco" in /etc/apt/sources.list.d/passenger.list
file and got the following issue on installing ibnginx-mod-http-passenger:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libnginx-mod-http-passenger
Can you please assist how to fix Unable to locate package libnginx-mod-http-passenger
?
@faisalraza our ubuntu 19.04 packages are not yet released due to being blocked on our migration to a new linux package host.
On Ubuntu 18.04.3 LTS
and with nginx/1.17.6
I have:
$ sudo apt-get install -y libnginx-mod-http-passenger
…
The following packages have unmet dependencies:
libnginx-mod-http-passenger : Depends: nginx-common (< 1.14.1) but 1.16.1-0+bionic1 is to be installed
@AntonAL i just tested installing libnginx-mod-http-passenger
on bionic in a clean vm, and it worked fine. Can you provide a script to go from a clean environment to reproduction of the issue?
this error happens after an upgrade of Ubuntu and passenger ubuntu release is not update, you can solve the problem by remove passenger and installing it again (save any config files you may have)
sudo apt purge passenger -y
sudo apt install passenger -y
sudo apt install libnginx-mod-http-passenger -y
Question 1: What is the problem? Following the setup guide listed on the site here
Dockerfile content:
Be as detailed as possible in your descriptions, include any logs and stack traces (don't just cut/paste the error, provide some logging before that too).
(if you are requesting a feature instead of reporting an issue, describe here what you have in mind and how it would help you)
Your answer:
Question 2: Passenger version and integration mode:
Your answer: Whatever comes out of your apt repo
Question 3: OS or Linux distro, platform (including version):
Your answer: Ubunutu 18.10
Question 4: Passenger installation method:
Your answer: [ ] RubyGems + Gemfile [ ] RubyGems, no Gemfile [x] Phusion APT repo [ ] Phusion YUM repo [ ] OS X Homebrew [ ] source tarball [ ] Other, please specify:
Question 5: Your app's programming language (including any version managers) and framework (including versions):
Your answer: Ruby 2.5.1
Question 6: Are you using a PaaS and/or containerization? If so which one?
Your answer: Docker
Question 7: Anything else about your setup that we should know?
Your answer:
We strive for quality and appreciate you taking the time to submit a report! Please note that if you want guaranteed response times and priority issue support we encourage you to join our enterprise customer base. They also provide us with the means to continue our high level of open source support!