sudo dpkg --configure-a via chef

Asked 1 years ago, Updated 1 years ago, 58 views

in recipe to install curlftpfs on Ubuntu 14.04 using Chef
package "curlftpfs"

I ran it with the following error.

----Begin output of apt-get-q-y install curlftpfs=0.9.2-5ubuntu1----
STDOUT:
STDERR:E:dpkg is aborted.You must run 'sudodpkg --configure-a' manually to fix the problem.
---- End output of apt-get-q-y install curlftpfs = 0.9.2-5ubuntu1 ----

Of course, I can log in to Ubuntu and execute the appropriate command, but what should I do when I do that via Chef?

Simply

execute "dpkg --configure-a"
package "curlftpfs"

Is it better to say that It's a little uncomfortable to do it unconditionally every time, so please let me know if there's a better way.

chef apt

2022-09-29 22:45

1 Answers

The question is why dpkg --configure-a is required.Something bad should have happened to the installation you were running before.

dpkg--audit may be found.

Regardless of the reason, if the installation is successful, why don't you just do it every time?


2022-09-29 22:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.