Package installation stuck and spinning wheel never stops under Libertine



  • @lakotaubp Thanks lakotaubp. I have unsuccessfully tried to delete the whole container by swipeing its name to the right and tapping on the red bin. The container is still there. Maybe it doesn't want to be deleted while an app is being installed?



  • @advocatux Thanks advocatux. I thought too that the installation could take a while but it has been running for hours and hours. I have tapped on the cogwheel and the "install status" is "installing". If I then type on the "View" option, the "status" is "ready". But this only means that the container is ready, not the app.



  • @ubuntoutou Ok restart your device and see if that helps. If not have a look here for the terminal commands https://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html and do it from there. Good luck



  • @lakotaubp I have tried rebooting the device to no avail. I have used ADB to control the phone from a PC. I then used libertine-container-manager with apt commands to search the package stuck in installation mode. The package is nowhere to be found in the container. I have tried unsuccessfully to remove the container:

    $ libertine-container-manager destroy -i xenial
    Libertine.py:124: ERROR: _delete_rootfs(): [Errno 13] Permission denied: 'dev'



  • @ubuntoutou Ok try putting the phone lock screen time to never (battery settings) and from the terminal run libertine-container-manager destroy -i container-name and let it run



  • @lakotaubp Thanks but this is exactly what I have already done...



  • @lakotaubp
    $ libertine-container-manager destroy -i xenial
    Libertine.py:124: ERROR: _delete_rootfs(): [Errno 13] Permission denied: 'dev'



  • @ubuntoutou said in Package installation stuck and spinning wheel never stops under Libertine:

    @lakotaubp
    $ libertine-container-manager destroy -i xenial
    Libertine.py:124: ERROR: _delete_rootfs(): [Errno 13] Permission denied: 'dev'

    strange. no clue what might cause this.

    if you are ok to get rid of all containers and all else failed, you can delete manually. first find the file where the containers are configured. I can't remember the name, I think it's a json or xml file inside some dot folder in your home dir. something like .config/libertine/containers.json ... I'm just guessing the name from memory, but it is something like this. If you look for libertine in .local .config .cache, you'll find it. Look inside you'll see your containers. if you remove this file and the root and home folders of your containers: https://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html#locations then everything should be gone and you can start over



  • @doniks Glad someone has a clue I'm baffled by this one now and why out of my knowledge range which isn't much : ) Was beginning to think of swapping update channels or reinstalling without the wipe option. all a bit drastic.



  • @doniks

    Thanks doniks.

    Before trying what you have suggested, I have installed the package xterm in my container. Then within this xterm I tried to locate the stuck installation process with ps although I have no idea if it should be visible from such a terminal or not. But ps wouldn't run. I got a message asking me to try "mount -t proc /proc" which I did only to be told that the "-t" option could only be run as root. But I was refused to use both sudo and su.

    So I tried your solution. However there was no .json nor any .xml file within any directory. The command
    # find / -iname "libertine" -print | egrep 'json|xml'
    did not yield any result.

    I searched for a root ~/.cache/libertine-container/CONTAINER-IDENTIFIER/rootfs/ directory but couldn't find any. In fact, there is no .cache directory under ~root nor even under "/". There is a "cache" directory (with no dot) under "/" but it has nothing relevant inside.
    However I did find the container directory ~phablet/.local/share/libertine-container/user-data/xenial. So I deleted this entire directory.

    Then I rebooted the device and when the Ubuntu logo appeared and I swiped sideways, no on-screen keyboard appeared to enter my pass code! I had to connect a mechanical keyboard through the USB port to do so... Furthermore, the container still exists and the stuck installation process subsists with its silly blue spinning circle!!! Arghhhhh

    I think I will end up reinstalling the whole operating system.



  • @ubuntoutou said in Package installation stuck and spinning wheel never stops under Libertine:

    @doniks

    Thanks doniks.

    Before trying what you have suggested, I have installed the package xterm in my container. Then within this xterm I tried to locate the stuck installation process with ps although I have no idea if it should be visible from such a terminal or not.

    well, I like to say ... you should see all running processes ... but then you say

    But ps wouldn't run. I got a message asking me to try "mount -t proc /proc"

    which surprises me ... not sure what that means

    but either way, I think that's a separate problem. certainly there is no more stuck process after a reboot. so ps wouldn't help anyway.

    which I did only to be told that the "-t" option could only be run as root. But I was refused to use both sudo and su.

    well, not being able to su and sudo is normal. remember the whole container is created by phablet user, all files inside are owned by phablet

    So I tried your solution. However there was no .json nor any .xml file within any directory. The command
    # find / -iname "libertine" -print | egrep 'json|xml'
    did not yield any result.

    mhm, maybe it's called something else, and maybe it isn't even json or xml format, but it definitely is some human readable text file, just use cd and ls starting from /home/phablet/ and then one of .cache, .config, .local

    I searched for a root ~/.cache/libertine-container/CONTAINER-IDENTIFIER/rootfs/ directory but couldn't find any.

    you know you have to replace "CONTAINER-IDENTIFIER" with the identifier of your container, right?! show ls -l ~/.cache/libertine-container/

    In fact, there is no .cache directory under ~root nor even under "/".

    I don't know what ~root refers to. I am only talking about files and folders underneath /home/phablet

    There is a "cache" directory (with no dot) under "/" but it has nothing relevant inside.

    yeah that is unrelated

    However I did find the container directory ~phablet/.local/share/libertine-container/user-data/xenial. So I deleted this entire directory.

    ok. that was the home directory inside the container. one of the three things I think you should get rid of. good. now lets find the other two: config file and the root folder

    Then I rebooted the device and when the Ubuntu logo appeared and I swiped sideways, no on-screen keyboard appeared to enter my pass code! I had to connect a mechanical keyboard through the USB port to do so...

    wooow. that doesnt sound good. it doesn't sound like its related to libertine though. have you been messing with root access? it might be time to make sure your backups are up to date

    Furthermore, the container still exists and the stuck installation process subsists with its silly blue spinning circle!!! Arghhhhh

    I think I will end up reinstalling the whole operating system.

    possible .... good luck!



  • @doniks

    Alright, I did find a file /home/phablet/.cache/libertine/puritine/PuritineSymlinkFarm.json and I deleted it. I don't know why I couldn't see it with find.

    Yes I know I have to replace CONTAINER-IDENTIFIER with the identifier of my container, i.e. xenial.

    ~root refers to /root.

    I have found the following text files which I deleted:
    /.local/share/unity-scopes/unconfined/libertine-scope.ubuntu_libertine-scope/.surfacing_cache
    /.local/share/unity-scopes/unconfined/clickscope/.surfacing_cache

    But still no change, even after reboot. It seems that the container is very much contained and unbreakable! But don't worry, I am going to reinstall UT anyway.

    Thank you to all for your help.



  • @ubuntoutou Good luck


Log in to reply