Same issue with /var/log/btmp and same fix: Comment out the entry in
/etc/logrotate.conf

root@sei:/etc# !diff
diff -Naur logrotate.conf.dist logrotate.conf
--- logrotate.conf.dist 2017-08-21 19:38:26.000000000 +0200
+++ logrotate.conf      2021-02-16 02:09:31.665145104 +0100
@@ -19,18 +19,18 @@
 include /etc/logrotate.d
 
 # no packages own wtmp, or btmp -- we'll rotate them here
-/var/log/wtmp {
-    missingok
-    monthly
-    create 0664 root utmp
-    rotate 1
-}
+#/var/log/wtmp {
+#    missingok
+#    monthly
+#    create 0664 root utmp
+#    rotate 1
+#}
 
-/var/log/btmp {
-    missingok
-    monthly
-    create 0660 root utmp
-    rotate 1
-}
+#/var/log/btmp {
+#    missingok
+#    monthly
+#    create 0660 root utmp
+#    rotate 1
+#}
 
 # system-specific logs may be configured here

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to logrotate in Ubuntu.
https://bugs.launchpad.net/bugs/1915759

Title:
  error: /etc/logrotate.conf:22 duplicate log entry for /var/log/wtmp

Status in logrotate package in Ubuntu:
  New

Bug description:
  The cron.daily job reports an error running logrotate:

  /etc/cron.daily/logrotate:
  error: /etc/logrotate.conf:22 duplicate log entry for /var/log/wtmp

  There is a duplicate entry for "wtmp" in:
    /etc/logrotate.conf
    /etc/logrotate.d/wtmp

  Fix: Comment out the entry in /etc/logrotate.conf

  root@sei:/etc# diff -Naur logrotate.conf.dist logrotate.conf
  --- logrotate.conf.dist       2017-08-21 19:38:26.000000000 +0200
  +++ logrotate.conf    2021-02-15 21:24:21.650451930 +0100
  @@ -19,12 +19,12 @@
   include /etc/logrotate.d
   
   # no packages own wtmp, or btmp -- we'll rotate them here
  -/var/log/wtmp {
  -    missingok
  -    monthly
  -    create 0664 root utmp
  -    rotate 1
  -}
  +#/var/log/wtmp {
  +#    missingok
  +#    monthly
  +#    create 0664 root utmp
  +#    rotate 1
  +#}
   
   /var/log/btmp {
       missingok

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: logrotate 3.11.0-0.1ubuntu1
  ProcVersionSignature: Ubuntu 5.4.0-65.73~18.04.1-generic 5.4.78
  Uname: Linux 5.4.0-65-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.9-0ubuntu7.23
  Architecture: amd64
  CurrentDesktop: MATE
  Date: Mon Feb 15 21:30:21 2021
  InstallationDate: Installed on 2020-08-03 (196 days ago)
  InstallationMedia: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Release amd64 
(20200423)
  SourcePackage: logrotate
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.logrotate.conf: 2021-02-15T21:24:21.650452

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1915759/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to