Failed to intall ubuntu-minimal for unconfigured resolvconf

Asked by Lei Zhang on 2016-08-29

I am trying to install ubuntu-minimal on ubuntu 16.04 on s390x. However I wasn't able to install because "ubuntu-minimal depends on resolvconf; however: Package resolvconf is not configured yet."

# apt-get install ubuntu-minimal
.
.
.
Setting up vim-tiny (2:7.4.1689-3ubuntu1.1) ...
Setting up whiptail (0.52.18-1ubuntu2) ...
dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on resolvconf; however:
  Package resolvconf is not configured yet.

dpkg: error processing package ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
Setting up python3 (3.5.1-3) ...
running python rtupdate hooks for python3.5...
running python post-rtupdate hooks for python3.5...
Setting up console-setup (1.108ubuntu15.2) ...
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-initramfs: deferring update (trigger activated)
Setting up kbd (1.15.5-1ubuntu4) ...
Setting up console-setup-linux (1.108ubuntu15.2) ...
update-alternatives: using /etc/console-setup/vtrgb to provide /etc/vtrgb (vtrgb) in auto mode
Setting up lsb-release (9.20160110ubuntu0.2) ...
Setting up dh-python (2.20151103ubuntu1.1) ...
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 resolvconf
 ubuntu-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubuntu-meta Edit question
Assignee:
No assignee Edit question
Last query:
2016-08-29
Last reply:
2016-08-30
Manfred Hampl (m-hampl) said : #1

What is the output of

sudo dpkg --configure -a

Lei Zhang (lzhangibm) said : #2

Hi, the output:

root@aebd910b2b79:/# dpkg --configure -a
Setting up resolvconf (1.78ubuntu2) ...
ln: cannot remove '/etc/resolv.conf': Device or resource busy
dpkg: error processing package resolvconf (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ubuntu-minimal:
 ubuntu-minimal depends on resolvconf; however:
  Package resolvconf is not configured yet.

dpkg: error processing package ubuntu-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 resolvconf
 ubuntu-minimal

Manfred Hampl (m-hampl) said : #3

What is the output of

file /etc/resolv.conf
ls -l /etc/resolv.conf

Lei Zhang (lzhangibm) said : #4

the output:

root@aebd910b2b79:/# file /etc/resolv.conf
/etc/resolv.conf: ASCII text
root@aebd910b2b79:/# ls -l /etc/resolv.conf
-rw-r--r-- 1 root root 239 Aug 29 17:21 /etc/resolv.conf

Try:

sudo apt-get --reinstall install resolvconf

Lei Zhang (lzhangibm) said : #6

root@aebd910b2b79:/# apt-get --reinstall install resolvconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 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.
E: Internal Error, No file name for resolvconf:s390x

sudo apt-get update
sudo apt-get clean
sudo apt-get install -fy
sudo dpkg -i /var/cache/apt/archives/*.deb
sudo dpkg --configure -a
sudo apt-get install -fy
sudo apt-get dist-upgrade

Source:
http://askubuntu.com/questions/266450/how-to-fix-e-internal-error-no-file-name-for-libc6

Maybe you have tried installing resolvconf under Docker?, see https://github.com/docker/docker/issues/1297

Possible workarounds before installing resolvconf:
RUN :> /var/lib/resolvconf/linkified
RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections

Can you help with this problem?

Provide an answer of your own, or ask Lei Zhang for more information if necessary.

To post a message you must log in.