danielguerra69 / ubuntu-xrdp

Docker fully implemented Multi User xrdp with xorgxrdp and pulseaudio on Ubuntu 16.04/18.04
MIT License
251 stars 141 forks source link

Dockerfile Issue #66

Open do7urden opened 1 year ago

do7urden commented 1 year ago

Hello,

Firstly thank you for sharing your work. I could use the docker image at your docker hub. However, I got this error when I use Dockerfile that you shared here. The error:

make[4]: Leaving directory '/tmp/pulseaudio-11.1/src' Makefile:4951: recipe for target 'all' failed make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 Makefile:812: recipe for target 'all-recursive' failed Makefile:627: recipe for target 'all' failed make[1]: *** [all] Error 2 dh_auto_build: make -j4 -O returned exit code 2 debian/rules:34: recipe for target 'build' failed make: *** [build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 The command '/bin/sh -c dpkg-buildpackage -rfakeroot -uc -b' returned a non-zero code: 2

Then after a little search, I found that the issue occurs due to sources.list file then I changed it with:


deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb http://security.ubuntu.com/ubuntu/ focal-security universe
deb-src http://security.ubuntu.com/ubuntu/ focal-security universe
deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
deb-src http://security.ubuntu.com/ubuntu/ focal-security multiverse

deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://archive.canonical.com/ubuntu bionic partner
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb-src http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

And this solved the problem I was talking about.

Unfortunately, after fixing the above I'm getting another error :

Step 13/45 : RUN dpkg-buildpackage -rfakeroot -uc -b ---> Running in b6f0e1da65c8 dpkg-buildpackage: error: cannot open file debian/changelog: No such file or directory The command '/bin/sh -c dpkg-buildpackage -rfakeroot -uc -b' returned a non-zero code: 25 [pamuser@onurdsc image_od]$

Do you have any idea what might cause that?

vkovelkar commented 1 year ago

I am also facing same issue

dpkg-source: info: applying 0001-card-restore-setting-preferred-ports-in-entry_from_c.patch W: Download is performed unsandboxed as root as file 'pulseaudio_15.99.1+dfsg1-1ubuntu2.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) Fetched 1540 kB in 0s (4070 kB/s) Removing intermediate container 0546ed47407d ---> fab7a13620e7 Step 9/18 : RUN cd /pulseaudio-$(pulseaudio --version | awk '{print $2}') && ./configure ---> Running in a9ac73ee988c /bin/sh: 1: cd: can't cd to /pulseaudio-15.99.1 The command '/bin/sh -c cd /pulseaudio-$(pulseaudio --version | awk '{print $2}') && ./configure' returned a non-zero code: 2

do7urden commented 1 year ago

@vkovelkar I was avoiding the error that I got with this: https://iomem.com/archives/18-Avoiding-tests-when-building-Debian-packages.html