Score:0

'apt -y install couchdb' doesnt work.. :( sed -e error

cn flag

i added the relevant apt sources to install couchdb, but find that it just doesn't work;

(Kubuntu-22.04LTS)

sudo apt update && sudo apt install -y curl apt-transport-https gnupg
curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/couchdb-archive-keyring.gpg >/dev/null 2>&1
source /etc/os-release
echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ jammy main" \
    | sudo tee /etc/apt/sources.list.d/couchdb.list >/dev/null

output :

~# apt update
Hit:1 http://nl.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://nl.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]                                                                
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                                                 
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                                                            
Get:5 http://nl.archive.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB]                                                  
Get:6 http://nl.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [411 kB]                                            
Get:7 http://nl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [831 kB]                                               
Get:8 http://nl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [97,0 kB]                                       
Get:9 http://nl.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages [25,9 kB]                                         
Get:10 http://nl.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [566 kB]             
Get:11 http://nl.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [559 kB]                                           
Get:12 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [41,4 kB]                                       
Get:13 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [13,2 kB]                                                  
Get:14 http://nl.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [785 kB]                                                                
Get:15 http://nl.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [258 kB]                                    
Get:16 http://nl.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]                                   
Get:17 http://nl.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [12,5 kB]         
Hit:18 https://apache.jfrog.io/artifactory/couchdb-deb jammy InRelease                     
Fetched 3.925 kB in 1s (5.207 kB/s)                     
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
The following packages have been kept back:
  grub-common grub-pc grub-pc-bin grub2-common
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up couchdb (3.3.1~jammy) ...
sed: -e expression #1, char 53: unknown option to `s'
dpkg: error processing package couchdb (--configure):
 installed couchdb package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 couchdb
E: Sub-process /usr/bin/dpkg returned an error code (1)
~# 

and if i remove the /etc/apt/sources.list.d/couchdb file, i get an 'installation candidate not found' error..

~# dpkg -P couchdb
(Reading database ... 234164 files and directories currently installed.)
Removing couchdb (3.3.1~jammy) ...
Purging configuration files for couchdb (3.3.1~jammy) ...
Processing triggers for man-db (2.10.2-1) ...
~# cd /etc/apt/sources.list.d/
/etc/apt/sources.list.d# ls
couchdb.list  google-chrome.list
/etc/apt/sources.list.d# rm couchdb.list 
/etc/apt/sources.list.d# apt update
Hit:1 http://nl.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://nl.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]                                                                                                    
Get:3 http://nl.archive.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB]                                                                                                 
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                                                                               
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                  
Get:6 http://nl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [97,1 kB]
Get:7 http://nl.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [258 kB]
Get:8 http://nl.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:9 http://nl.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [12,5 kB]
Fetched 582 kB in 0s (1.579 kB/s)          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
/etc/apt/sources.list.d# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
The following packages have been kept back:
  grub-common grub-pc grub-pc-bin grub2-common
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
/etc/apt/sources.list.d# apt install couchdb
Reading package lists... Done
Building dependency tree... Done
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
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.