Lightdm failed to remove (fix)

Forum Forums General Tips and Tricks Lightdm failed to remove (fix)

  • This topic has 4 replies, 5 voices, and was last updated Jan 8-7:28 pm by xinomilo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #82807
    Member
    robertklsz

      Trying to remove lightdm encountered and error in the file /var/lib/dpkg/info/lightdm.prerm.

      I found a missing fi around line 56. I added a fi after the “done” statement which seemed to correct the problem.

      This was repeatable.

      Was not sure where to post this so I gave hear a shot.

      #82995
      Member
      flartius
        Helpful
        Up
        0
        ::

        Helped me, thanks.

        #82999
        Moderator
        christophe
          Helpful
          Up
          0
          ::

          Good catch, robertklsz.
          (We put how-to articles into “tips & tricks.”) 😉

          confirmed antiX frugaler, since 2019

          #96200
          Member
          gerrygk
            Helpful
            Up
            0
            ::

            Thanks, it also perfectly helped me although I got a slightly different error message (unexpected end of file at line 67). But the error was the same (missing “fi” after “done”).

            #97033
            Member
            xinomilo
              Helpful
              Up
              0
              ::

              thanks, same here with testing package :

              Removing lightdm (1.26.0-8.0nosystemd1)
              var/lib/dpkg/info/lightdm.prerm: line 67: syntax error: unexpected end of file
              dpkg: error processing package lightdm (–remove):
              installed lightdm package pre-removal script subprocess returned error exit sta
              tus 2

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.