Trying to install openvpn and easy-rsa

Hi,
I have a problem when I try to install openvpn inside a container.
I’m running an Ubuntu14 container inside an Ubuntu16 host.
When I try to install easy-rsa inside the container I’m encountering this error.

`apt-get install openvpn easy-rsa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
easy-rsa is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up pcscd (1.8.10-1ubuntu1.1) ...
Failed to issue method call: No such file or directory
dpkg: error processing package pcscd (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of opensc:
 opensc depends on pcscd; however:
  Package pcscd is not configured yet.

dpkg: error processing package opensc (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 pcscd
 opensc
E: Sub-process /usr/bin/dpkg returned an error code (1)`

Host infos

lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial

Container infos

lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

lxc profile edit cos
config:
environment.http_proxy: ""
user.network_mode: link-local
description: COS Profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: cos
used_by:
/1.0/containers/cos

pcscd is unlikely to make sense in a container, you may want to remove that

but pcscd is a dependency for easy-rsa.
Is there any way to install easy-rsa from ubuntu packages without this dependency?

It’s not a dependency, it’s a recommends, so it can be removed without easy-rsa going away.

Thanks for the quick help.

Steps to install openvpn on my container.

apt-get install easy-rsa

Result: Errors were encountered while processing:
pcscd, opensc

apt-get remove --purge opensc pcscd

apt-get autoremove

The following packages will be REMOVED:
libccid

apt-get install openvpn

After that everting works fine. Thanks!

you could also pass --no-install-recommends to your initial apt-get, that should prevent those pacakges from getting installed in the first place.