Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install CouchDB from apt in Ubuntu 18.04 #1856

Closed
StoicLoofah opened this Issue Jan 14, 2019 · 16 comments

Comments

Projects
None yet
3 participants
@StoicLoofah
Copy link

StoicLoofah commented Jan 14, 2019

Expected Behavior

I followed the instructions at http://docs.couchdb.org/en/stable/install/unix.html#installation-using-the-apache-couchdb-convenience-binary-packages and verified that deb https://apache.bintray.com/couchdb-deb bionic main is in /etc/apt/sources.list and bintray@bintray.com is in my apt-key list.

When I run sudo apt install couchdb, I expect it to install properly

Current Behavior

Here is what I'm currently seeing.

me@server:~$ sudo apt update
Ign:1 https://apache.bintray.com/couchdb-deb bionic InRelease
Get:2 https://apache.bintray.com/couchdb-deb bionic Release [1,840 B]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]                             
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                                         
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]        
Fetched 174 kB in 1s (222 kB/s)                                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
18 packages can be upgraded. Run 'apt list --upgradable' to see them.
me@server:~$ sudo apt install couchdb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package couchdb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'couchdb' has no installation candidate

Also

me@server:~$ sudo apt search couchdb
Sorting... Done
Full Text Search... Done
couchapp/bionic 1.0.2+dfsg1-1 all
  Standalone CouchDB Application Development Made Simple

libcatmandu-perl/bionic 1.0700-1 all
  metadata toolkit

liblightcouch-java/bionic 0.0.6-1 all
  LightCouch - CouchDB Java API

pd-purest-json/bionic 1.4.2-3 i386
  Pd library for working with JSON data and RESTful webservices

python-celery/bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Python2 version)

python-celery-common/bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (common files)

python-celery-doc/bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Documentation)

python-couchdb/bionic 0.10-1.1 all
  library for working with Apache CouchDB

python-couchdbkit/bionic 0.6.5-2 all
  Trying to improve couchdb experience in Python

python-paisley/bionic 0.3.1-1 all
  CouchDB client written in Python to be used within a Twisted application

python-restkit/bionic 4.2.2-2 all
  Restkit is an HTTP resource kit for Python

python3-celery/bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Python3 version)

Possible Solution

I looked at #1314 so it appears that this should have been resolved awhile ago, so I'm not sure why I'm running into issues here.

Neither sudo apt clean or sudo apt autoclean helped.

I wouldn't be surprised if I made other mistakes in the process, but I'm not sure what else I can try to fix things.

Your Environment

I'm running Ubuntu 18.04 on a VPS that I recently updated from Ubuntu 14.04. I did not have couchdb installed previously.

@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 14, 2019

I can't reproduce on a local 18.04 system.

Can you make sure you have apt-transport-https installed?

@wohali wohali added the not a bug label Jan 14, 2019

@StoicLoofah

This comment has been minimized.

Copy link
Author

StoicLoofah commented Jan 14, 2019

Looks like that is installed, too.

me@server:~$ sudo apt install apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.6.6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

If this isn't ringing any bells and isn't reproducible from your side, I'll just close it out since I'm not sure whether it makes sense for you to help me debug this if it's just my problem. Maybe someone else will stumble across it with an idea of what to do

@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 14, 2019

Yeah, sorry - I would suggest to build a new machine and see if you have the same problem again. It looks for all the world like you're not actually getting the CouchDB packages into apt. Perhaps run aptitude and see if you can see CouchDB at all. Also check any release pinning you might have, or any other oddball changes you made under the /etc/apt directory.

Good luck, and do report back if/when you fix things.

@wohali wohali closed this Jan 14, 2019

@surveyservice

This comment has been minimized.

Copy link

surveyservice commented Jan 18, 2019

I am running into the same issue with Ubuntu 18.04.1

The only note I would add is that I upgraded from 16.04, this was not a fresh install.

administrator@mfalcon:~$ sudo apt-get update && sudo apt-get install couchdb
[sudo] password for administrator: 
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]                                                            
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                                         
Ign:5 https://apache.bintray.com/couchdb-deb bionic InRelease                                                                                     
Get:6 https://apache.bintray.com/couchdb-deb bionic Release [1,840 B]                
Fetched 248 kB in 1s (247 kB/s)                               
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package couchdb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'couchdb' has no installation candidate
administrator@mfalcon:~$ 
@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 18, 2019

@surveyservice What if you uninstall, then reinstall couchdb?

This will not remove your data.

@surveyservice

This comment has been minimized.

Copy link

surveyservice commented Jan 18, 2019

CouchDB is not installed. (and hasn't been on this machine)
This morning, I upgraded the OS from 16.04 Xenial to 18.04 Bionic, added the CouchDB repo and key, and tried to install.
It appears as though the CouchDB repository is being read, however I am consistently getting the Package 'couchdb' has no installation candidate. message.
I've tried the same steps as in the original post, but no luck.

@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 18, 2019

I don't know what to say, and I'm unable to reproduce the problem. People are able to download it - and there's even been an uptick since 2.2.0 - see the attached image, which is stats just for the .deb packages.

mwsnap 2019-01-18 13_19_53

@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 18, 2019

FYI I have reached out to a Debian/Ubuntu expert for advice; we'll see if anything comes back.

@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 18, 2019

@surveyservice Can you please run

apt policy couchdb

to see if something is pinned in such a way as to make it uninstallable?

@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 18, 2019

You should also check the apt cache directly, there should be a file in /var/lib/apt/lists/, something like apache.bintray.com_couchdb-deb_bionic_main_Packages.

@surveyservice

This comment has been minimized.

Copy link

surveyservice commented Jan 18, 2019

the results:

administrator@mfalcon:~$ apt policy couchdb
couchdb:
  Installed: (none)
  Candidate: (none)
  Version table:
     1.6.0-0ubuntu7 -1
        100 /var/lib/dpkg/status
administrator@mfalcon:~$ 
@surveyservice

This comment has been minimized.

Copy link

surveyservice commented Jan 18, 2019

there is a file called apache.bintray.com_couchdb-deb_dists_bionic_Release

I put its contents here in this gist

@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 18, 2019

@surveyservice can you confirm this is an amd64 host, not i386 or armhf or aarch64 or other? CouchDB only supplies 64-bit amd64 (x86_64) packages at this time.

@wohali

This comment has been minimized.

Copy link
Member

wohali commented Jan 18, 2019

@StoicLoofah Same point as above - was your machine 32-bit (i386)? That would explain the absence of packages.

@surveyservice Your output says this is a 32-bit install, sorry, we only provide 64-bit packages. You'll need to upgrade to a 64-bit processor, or install the 64-bit version of Ubuntu to get packages from us.

@surveyservice

This comment has been minimized.

Copy link

surveyservice commented Jan 18, 2019

@wohali Well that certainly explains it... thoroughly misjudged the machine I'm working with... thank you for your help and sorry for wasting your time...

@StoicLoofah

This comment has been minimized.

Copy link
Author

StoicLoofah commented Jan 18, 2019

@wohali confirmed that I am on a 64-bit machine

me@server:~$ uname -a
Linux ... SMP PREEMPT Mon Dec 10 18:25:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

My /var/lib/apt/lists/apache.bintray.com_couchdb-deb_dists_bionic_Release matches https://gist.github.com/surveyservice/20a4a36202c67a0efc31d6b28cb3adaf

Also

me@server:~$ apt policy couchdb
couchdb:
  Installed: (none)
  Candidate: (none)
  Version table:

Since @surveyservice also mentioned it, I also did upgrade from 14.04 to 18.04 via 16.04 within the past month as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.