Big mistake - removed e2fsprogs

Discussion in 'Installation/Configuration' started by Feanwulf, Mar 3, 2017.

  1. Feanwulf

    Feanwulf New Member


    i had some problems with chattr and lsattr which did not show me any attributes when i used them. So i decided to remove the package e2fsprogs and re-install it on my debian 8 system.

    But now i am running in bigger troubles:

    apt-get install e2fsprogs
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    Need to get 0 B/750 kB of archives.
    After this operation, 2,848 kB of additional disk space will be used.
    (Reading database ... 67551 files and directories currently installed.)
    Preparing to unpack .../e2fsprogs_1.42.12-2+b1_amd64.deb ...
    Unpacking e2fsprogs (1.42.12-2+b1) ...
    dpkg: error processing archive /var/cache/apt/archives/e2fsprogs_1.42.12-2+b1_amd64.deb (--unpack):
    unable to make backup link of `./usr/bin/chattr' before installing new version: Operation not permitted
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Processing triggers for man-db ( ...
    Errors were encountered while processing:
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    So e2fsprogs cannot be re-installed because chattr and lsattr are protected and therfore cannot be updated and so my full server is not working anymore.

    Anyone got an Idea HOW to get rid of /usr/bin/chattr and /usr/bin/lsattr to get the package reinstalled again?
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    rm /var/cache/apt/archives/e2fsprog*
    apt-get update && apt-get install e2fsprogs
  3. Feanwulf

    Feanwulf New Member

    I was able to fix the problem myself - i just downloaded the latest e2fsprogs source from sourceforge and uinpacked it. there are the chattr and lsattr commands included and i was able to use the commands to chattr -i on /usr/bin/chattr and lsattr - afterwards i deleted the files and did an apt-get install e2fsprogs

Share This Page