How auto type"OK" to purple window?

Hello :slight_smile:

I need help to automate an auto type "OK" to the below purple window:

command:

apt-get remove --purge resolvconf -y

Ouput:

I thought this below command could worked, but no :frowning:

echo -en "\n" | apt-get remove --purge resolvconf -y

Can someone help me? Thanks ! :b:

Arnaud

1 Like

Try a here doc:

apt-get remove --purge resolvconf -y <<!

!

Try :

aptitude remove resolvconf -f

I could not find an other way to remove that package and avoid the prompt using apt-get

Hope that helps
Regards
Peasant.

# apt-get autoremove resolvconf

or, if that doesn't work, try,

# apt-get --purge autoremove resolvconf

Sorry but all these commands doesn't work :frowning:

---------- Post updated at 10:20 AM ---------- Previous update was at 10:17 AM ----------

Complete output, if it can help:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  resolvconf* ubuntu-minimal*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 325 kB disk space will be freed.
(Reading database ... 14695 files and directories currently installed.)
Removing ubuntu-minimal (1.325) ...
Removing resolvconf (1.69ubuntu1.4) ...
resolvconf stop/waiting
resolvconf.postrm: Reboot recommended

Package configuration





    Configuring resolvconf 
                                                                           
    Reboot recommended                                                     
                                                                           
    The removal of the resolvconf package may have resulted in some        
    information about name servers becoming unavailable. To correct this   
    problem it is recommended that the system be rebooted.                 
                                                                           
                                    <Ok>                                   
                                                                           
   






Purging configuration files for resolvconf (1.69ubuntu1.4) ...

The expect utility may be required to force something interactive to be less interactive.