Skip to content

Instantly share code, notes, and snippets.

@nexus166
Created August 2, 2019 13:47
Show Gist options
  • Select an option

  • Save nexus166/bfdb5318e31b5fbe2ee868a4070dead2 to your computer and use it in GitHub Desktop.

Select an option

Save nexus166/bfdb5318e31b5fbe2ee868a4070dead2 to your computer and use it in GitHub Desktop.

docker/docker-py#1502 (comment)

pi@x:~/jenkins$ docker-compose up -d
Traceback (most recent call last):
  File "/usr/local/bin/docker-compose", line 6, in <module>
    from compose.cli.main import main
  File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 17, in <module>                                                                   
    import docker
  File "/usr/local/lib/python2.7/dist-packages/docker/__init__.py", line 2, in <module>                                                                     
    from .api import APIClient
  File "/usr/local/lib/python2.7/dist-packages/docker/api/__init__.py", line 2, in <module>
    from .client import APIClient
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 10, in <module>                                                                  
    from .build import BuildApiMixin
  File "/usr/local/lib/python2.7/dist-packages/docker/api/build.py", line 6, in <module>                                                                    
    from .. import auth
  File "/usr/local/lib/python2.7/dist-packages/docker/auth.py", line 9, in <module>                                                                         
    from .utils import config
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/__init__.py", line 3, in <module>                                                               
    from .decorators import check_resource, minimum_version, update_headers
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 4, in <module>                                                             
    from . import utils
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/utils.py", line 13, in <module>                                                                 
    from .. import tls
  File "/usr/local/lib/python2.7/dist-packages/docker/tls.py", line 5, in <module>                                                                          
    from .transport import SSLHTTPAdapter
  File "/usr/local/lib/python2.7/dist-packages/docker/transport/__init__.py", line 3, in <module>
    from .ssladapter import SSLHTTPAdapter
  File "/usr/local/lib/python2.7/dist-packages/docker/transport/ssladapter.py", line 23, in <module>                                                        
    from backports.ssl_match_hostname import match_hostname
ImportError: No module named ssl_match_hostname
1 pi@x:~/jenkins$ sudo apt-get remove python-configparser
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:                                                                             
  libjs-sphinxdoc libjs-underscore python-asn1crypto python-cffi-backend python-cryptography python-dbus python-enum34
  python-ipaddress python-secretstorage rpi.gpio-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  python-configparser python-entrypoints python-keyring
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 578 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 91291 files and directories currently installed.)
Removing python-keyring (17.1.1-1) ...
Removing python-entrypoints (0.3-1) ...
Removing python-configparser (3.5.0b2-1) ...
Setting up aufs-dkms (4.19+20190211-1) ...
Removing old aufs-4.19+20190211 DKMS files...

------------------------------
Deleting module version: 4.19+20190211
completely from the DKMS tree.
------------------------------
Done.
Loading new aufs-4.19+20190211 DKMS files...
It is likely that 4.19.58-v7+ belongs to a chroot's host
Building for 4.19.58+, 4.19.58-v7+ and 4.19.58-v7l+
Building initial module for 4.19.58+
Error! Bad return status for module build on kernel: 4.19.58+ (armv7l)
Consult /var/lib/dkms/aufs/4.19+20190211/build/make.log for more information.
dpkg: error processing package aufs-dkms (--configure):
 installed aufs-dkms package post-installation script subprocess returned error exit status 10                                                              
Errors were encountered while processing:
 aufs-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
100 pi@x:~/jenkins$ docker-compose up -d
Creating network "jenkins_default" with the default driver
Creating jenkins ... done
pi@x:~/jenkins$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment