Results 1 to 2 of 2

Thread: dpkg in a read-only root filesystem

  1. #1
    Join Date
    Apr 2012
    Beans
    38

    [Solved] dpkg in a read-only root filesystem

    Good day, everyone:
    I used to install dpkg packages in my embedded arm board with a nand flash, and my initrd will mount all my entire root filesystem as aufs, and I can 'temporary' install dpkg packages.

    And recently I change my kernel and removed initrd, so now I have to mount aufs after boot in linux, and "/" can`t be mounted as aufs after this change, but the others(etc, var, usr etc...) still can mounted as aufs, and cause a big problem --- It can`t install any dpkg packages!

    When I type something like: "sudo dpkg -i udiskie_0.4.2-atrust1-1_armel.deb", and system will spill out the following:

    dpkg: error processing udiskie_0.4.2-atrust1-1_armel.deb (--install):
    unable to securely remove '//..dpkg-tmp': Read-only file system

    This confuse me, I don`t think it need "/" writeable to install packages.Could someone please teach me why this happen? I will be so grateful.
    Last edited by h113331pp; October 2nd, 2012 at 08:31 AM.

  2. #2
    Join Date
    Apr 2012
    Beans
    38

    Re: dpkg in a read-only root filesystem

    I very appreciate actionparsnip`s help.it inspire me more clues
    I found a work arround, plus "--instdir=/tmp" will solve this issue, below is what I do:
    user@atrust-004CC8:/tmp$ sudo dpkg -i --instdir=/tmp ./udiskie_0.4.2-atrust1-1_armel.deb
    (Reading database ... 25296 files and directories currently installed.)
    Preparing to replace udiskie 0.4.2-atrust1-1 (using .../udiskie_0.4.2-atrust1-1_armel.deb) ...
    Unpacking replacement udiskie ...
    Setting up udiskie (0.4.2-atrust1-1) ...
    user@atrust-004CC8:/tmp$
    but apt still need to find a way to set instdir like dpkg does.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •