質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Q&A

解決済

1回答

548閲覧

手動で設定ファイルを消してしまったが、再インストールで設定ファイルを自動生成させたい。

mitdok

総合スコア49

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

0グッド

0クリップ

投稿2022/09/13 03:11

編集2022/09/13 03:19

前提

Ubuntuで、手動でdovecotの設定ファイルをrm -rで消してしまいました。
その後、再インストールしようとしましたが、
Not replacing deleted config file /etc/dovecot/dovecot.conf
などとなり、再生成されません。

実現したいこと

apt install dovecot-common dovecot-imapd dovecot-pop3d
で、/etc/dovecot/以下の設定ファイルを自動生成してほしいです。

発生している問題・エラーメッセージ

# apt --reinstall -f install dovecot-common dovecot-imapd dovecot-pop3d Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'dovecot-core' instead of 'dovecot-common' The following NEW packages will be installed: dovecot-imapd dovecot-pop3d 0 upgraded, 2 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/2,924 kB of archives. After this operation, 723 kB of additional disk space will be used. (Reading database ... 107364 files and directories currently installed.) Preparing to unpack .../dovecot-core_1%3a2.2.33.2-1ubuntu4.8_amd64.deb ... Unpacking dovecot-core (1:2.2.33.2-1ubuntu4.8) over (1:2.2.33.2-1ubuntu4.8) ... Selecting previously unselected package dovecot-imapd. Preparing to unpack .../dovecot-imapd_1%3a2.2.33.2-1ubuntu4.8_amd64.deb ... Unpacking dovecot-imapd (1:2.2.33.2-1ubuntu4.8) ... Selecting previously unselected package dovecot-pop3d. Preparing to unpack .../dovecot-pop3d_1%3a2.2.33.2-1ubuntu4.8_amd64.deb ... Unpacking dovecot-pop3d (1:2.2.33.2-1ubuntu4.8) ... Setting up dovecot-core (1:2.2.33.2-1ubuntu4.8) ... Not replacing deleted config file /etc/dovecot/dovecot.conf Not replacing deleted config file /etc/dovecot/dovecot-dict-auth.conf.ext Not replacing deleted config file /etc/dovecot/dovecot-dict-sql.conf.ext Not replacing deleted config file /etc/dovecot/dovecot-sql.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/10-auth.conf Not replacing deleted config file /etc/dovecot/conf.d/10-director.conf Not replacing deleted config file /etc/dovecot/conf.d/10-logging.conf Not replacing deleted config file /etc/dovecot/conf.d/10-mail.conf Not replacing deleted config file /etc/dovecot/conf.d/10-master.conf Not replacing deleted config file /etc/dovecot/conf.d/10-ssl.conf Not replacing deleted config file /etc/dovecot/conf.d/10-tcpwrapper.conf Not replacing deleted config file /etc/dovecot/conf.d/15-lda.conf Not replacing deleted config file /etc/dovecot/conf.d/15-mailboxes.conf Not replacing deleted config file /etc/dovecot/conf.d/90-acl.conf Not replacing deleted config file /etc/dovecot/conf.d/90-plugin.conf Not replacing deleted config file /etc/dovecot/conf.d/90-quota.conf Not replacing deleted config file /etc/dovecot/conf.d/auth-checkpassword.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/auth-deny.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/auth-dict.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/auth-master.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/auth-passwdfile.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/auth-sql.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/auth-static.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/auth-system.conf.ext Not replacing deleted config file /etc/dovecot/conf.d/auth-vpopmail.conf.ext

試したこと

apt-get -o DPkg::Options::="--force-confmiss" --reinstall install dovecot-common dovecot-imapd dovecot-pop3d

や、

apt -f install

などを試しましたが、一部のファイルは生成したものの、全部を生成できません。

補足情報(FW/ツールのバージョンなど)

Ubuntu18.04LTS
apt

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

別端末に同一OSをインストールして、入れたいソフトをapt installで入れて生成された設定ファイルを、希望の端末にコピーすることで解決しました。

投稿2022/09/13 07:56

mitdok

総合スコア49

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問