Docker Community Forums

Share and learn in the Docker community.

Apt-get install does nothing

Hello,
I am very new to docker so my question may not be very clever…
I have run a couchbase container and i wanted to install the couchbase python SDK.

sudo docker run --name db_couchbase -p 8091-8094:8091-8094 -p 11210:11210 couchbase
I tries the commands indicated in the couchbase documentation :
sudo docker exec db_couchbase wget http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-2-amd64.deb
sudo docker exec db_couchbase dpkg -i couchbase-release-1.0-2-amd64.deb
sudo docker exec db_couchbase apt-get update
sudo docker exec db_couchbase apt-get install libcouchbase-dev build-essential python-dev python-pip

The last command seems to begin ok

Reading package lists…
Building dependency tree…
Reading state information…
The following extra packages will be installed:
binutils cpp cpp-4.8 dpkg-dev fakeroot g++ g+±4.8 gcc gcc-4.8

python3-pkg-resources xz-utils
0 upgraded, 67 newly installed, 0 to remove and 6 not upgraded.
Need to get 66.4 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y

But after this Y, nothing happens. No error message, nothing.

The only thing i have noticed was during the apt-get update. At the end, I had these 2 Warnings (on forums, these Warnings don’t seem to be too serious).

Reading package lists…
W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages.gz is not what the server reported 1185088 1185184
W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_universe_binary-amd64_Packages.gz is not what the server reported 514714 514763

Thank you for your help

Ok. Sorry for the stupid question :slight_smile:
I found a solution with the -y flag:

sudo docker exec db_couchbase apt-get install -y libcouchbase-dev build-essential python-dev python-pip