installing unimrcp-server-dev in ubuntu dockerfile.

20 views
Skip to first unread message

Daniel McKenna

unread,
Jul 3, 2025, 7:25:27 AMJul 3
to UniMRCP
Hi all,

I've created the following dockerfile partially derived from information available in https://unimrcp.org/manuals/html/DebInstallationManual.html :

```
From ubuntu:22.04

# These are used to access the UniMRCP package repository.
ARG UNIMRCP_USERNAME
ARG UNIMRCP_PASSWORD

RUN echo -e "\
machine unimrcp.org\n\
login $UNIMRCP_USERNAME\
password $UNIMRCP_PASSWORD" > /etc/apt/auth.conf.d/unimrcp.conf

RUN echo "deb [trusted=yes arch=amd64] https://unimrcp.org/repo/apt/ jammy main" >  /etc/apt/sources.list.d/unimrcp.list  

# Install required tools
RUN apt-get update && apt-get install -y \
    wget \
    gnupg \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*

# Add UniMRCP GPG key
RUN wget -O - https://unimrcp.org/keys/unimrcp-gpg-key.public | apt-key add -

# Update and install the package
RUN apt-get update && apt-get install -y unimrcp-server-dev
```

The issue is there's a lot errors with 403 forbidden:

```
Err:39 https://unimrcp.org/repo/apt jammy/main amd64 unimrcp-common-dev amd64 1:1.7.0-jammy
  403  Forbidden [IP: 44.237.223.163 443]
Get:40 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc6-dev amd64 2.35-0ubuntu3.10 [2100 kB]
Get:41 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1-dev amd64 2.4.7-1ubuntu0.6 [148 kB]
Get:42 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-dev amd64 2.5.19+dfsg-0ubuntu0.22.04.1 [303 kB]
Err:43 https://unimrcp.org/repo/apt jammy/main amd64 unimrcp-server amd64 1:1.7.0-jammy
  403  Forbidden [IP: 44.237.223.163 443]
Get:44 http://archive.ubuntu.com/ubuntu jammy/main amd64 libsctp1 amd64 1.0.19+dfsg-1build1 [9370 B]
Get:45 http://archive.ubuntu.com/ubuntu jammy/main amd64 libsctp-dev amd64 1.0.19+dfsg-1build1 [51.1 kB]
Get:46 http://archive.ubuntu.com/ubuntu jammy/main amd64 manpages-dev all 5.10-1ubuntu1 [2309 kB]
Get:47 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 uuid-dev amd64 2.37.2-4ubuntu3.4 [33.1 kB]
Get:48 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap2-dev all 2.5.19+dfsg-0ubuntu0.22.04.1 [7112 B]
Err:49 https://unimrcp.org/repo/apt jammy/main amd64 unimrcp-server-dev amd64 1:1.7.0-jammy
  403  Forbidden [IP: 44.237.223.163 443]
Fetched 12.1 MB in 7s (1692 kB/s)
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/uniapr/uniapr_1.5.2-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/uniapr/uniapr-dev_1.5.2-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/uniapr-util/uniapr-util_1.5.4-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/uniapr-util/uniapr-util-dev_1.5.4-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/unisofia-sip/unisofia-sip_1.12.12-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/unimrcp/unimrcp-common_1.7.0-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/unisofia-sip/unisofia-sip-dev_1.12.12-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/unimrcp/unimrcp-common-dev_1.7.0-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/unimrcp/unimrcp-server_1.7.0-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Failed to fetch https://unimrcp.org/repo/apt/pool/main/u/unimrcp/unimrcp-server-dev_1.7.0-jammy_amd64.deb  403  Forbidden [IP: 44.237.223.163 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: building at STEP "RUN apt-get update && apt-get install -y unimrcp-server-dev": while running runtime: exit status 100
```

I'm about to try removing the apt-key add in favour of something that won't give deprecation warnings. But given I used "trusted=yes" I would expect that to not matter so much and the issue to be somewhere else. Any help is appreciated! 

Kind regards,
Daniel 

Vahagn Kocharyan

unread,
Jul 7, 2025, 12:58:31 PMJul 7
to UniMRCP
Hi
You can try from any browser or with curl with you credentails to ensure your credentials works

Thanks

Daniel McKenna

unread,
Jul 8, 2025, 7:33:36 AMJul 8
to UniMRCP
I've found the issue it was this line "login $UNIMRCP_USERNAME\" it was missing a \n
 
Reply all
Reply to author
Forward
0 new messages