Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

  1. #1

    Default rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    Hello,

    A recent upgrade (zypper dup) on my OpenSuse 42.1, 64-bit system failed the installation of the package kernel-default-devel-4.1.39-53.1.x86_64 -- it just hung at the message "Installing: kernel-default-devel-4.1.39-53.1.x86_64 ---". It hung there for hours. I tried again, repeatedly, then I downloaded the package and tried using rpm by itself -- all in vain. The rest of the system upgrade went well, so I now run the said kernel with the earlier version purged, but the source header files haven't been installed; e.g., the /usr/src/linux-4.1.39-53-obj directory stands empty. As a result, I cannot compile kernel modules for a software I need to use.

    uname -a returns:

    Linux [hostname[ 4.1.39-53-default #1 SMP PREEMPT Thu Mar 30 06:44:23 UTC 2017 (56cc5a0) x86_64 x86_64 x86_64 GNU/Linux

    Repeated experiment with rpm all hang; I have to reboot between in order to release the "shared lock on /var/lib/rpm/Packages".

    Could someone, please, let me know how to overcome this problem?

    Thank you very much for your attention and help.

    G.

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,643
    Blog Entries
    3

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    Do you have enough spare space in your root partition?
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    Thank you for responding.

    Yes, I have enough space: my root partition is 45% full, with 26 GB free space still available.
    By the way, zypper does't complain at all, it just hangs -- and it does (does not) do it for hours, until I kill it.
    In fact, in zypper's terminal window lines there is a little "propeller" on the right end (brackets with a - or / or | or \ inside, alternating as time passes) that should indicate that something is happening. Well, that "propeller" isn't turning either.

    I didn't check again what precise symptoms vanilla "rpm" produces (I will have to reboot for that to make the shared lock on /var/lib/rpm/Packages available) but it also fails, I remember.

    G.

    Quote Originally Posted by nrickert View Post
    Do you have enough spare space in your root partition?

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,748

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    Are you sure what did you use to view free space?? Snapper hides it's files and the normal Linux utilities do not report correct space usage use snapper utilities. Assuming BTFS and snapper used

  5. #5

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    I never used snapper. I now did a 3-minute search on it but didn't find how I can use it to report free space. Can you, please, quote the command to me? I used df to check available space. The FS on my / is xfs. Is there another way I should try?

    In any case, I would be surprised if this were a disk free space problem. Running zypper now a day later, it does successfully download and install a number of other packages... but again hangs on kernel-default-devel-4.1.39-53.1.x86_64.rpm (by the way, at this time, zypper also reported file conflicts on this package, e.g.:

    File /usr/src/linux-4.1.39-53-obj/x86_64/default/include/generated/utsrelease.h
    from install of
    kernel-default-devel-4.1.39-53.1.x86_64 (openSUSE-Leap-42.1-Update)
    conflicts with file
    /usr/src/linux-4.1.38-50-obj/x86_64/default/include/generated/utsrelease.h
    from package
    kernel-default-devel-4.1.38-50.1.x86_64 (@System)

    But I just asked it to proceed after these messages. (No conflicts were reported when I experimented earlier.) However, asking zypper to proceed despite conflicts on this package shouldn't hang it (it may cause some system inconsistency problems elsewhere, but on this particular package, I am not sure hos serious they would be).

    By the way, before trying zypper this morning, I also tried rpm (could run in a freshly booted system) on the problem package, and this is what happened:

    > rpm -iv kernel-default-devel-4.1.39-53.1.x86_64.rpm
    Preparing packages...

    ... and then nothing happened. I killed it after a few minutes of waiting (I didn't give it the hour long waiting time I gave it yesterday).

    Thank you for your help and attention!

    G.


    Quote Originally Posted by gogalthorp View Post
    Are you sure what did you use to view free space?? Snapper hides it's files and the normal Linux utilities do not report correct space usage use snapper utilities. Assuming BTFS and snapper used

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,748

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    Are you using BTRFS if so the default is using snapper. If you use EXT4 or other file systems snapper is not used. If you do use BTRFS a OS upgrade can cause a large increase in snapper usage because all the files are changed and thus get put into snapshots. df/du do not show snapper usage only snapper and BTRFS commands show true disk usage

    Here is the commands and usage.

    https://en.opensuse.org/Portal:Snapper

  7. #7

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    Thank you for the link.

    However, after further digging, I still suspect that the snapper utilities are not relevant for me. Reasons:
    (a) I have an xfs file system for the / mount point (also please see my first response to you, above) -- in fact, none of my filesystems are btrfs,
    (b) The command "snapper list" from the link you provided produce "The config 'root' does not exist. Likely snapper is not configured. See 'man snapper' for further instructions." -- so maybe I really don't have snapper working? My /etc/snapper/configs directory is empty.

    Note also that, as I mentioned in my first reply to you, I can still install other packages without hanging the commands.
    Also, my system/rpm/zypper doesn't complain that no space is left on the device. It just hangs.

    Thank you,

    G.

    Quote Originally Posted by gogalthorp View Post
    Are you using BTRFS if so the default is using snapper. If you use EXT4 or other file systems snapper is not used. If you do use BTRFS a OS upgrade can cause a large increase in snapper usage because all the files are changed and thus get put into snapshots. df/du do not show snapper usage only snapper and BTRFS commands show true disk usage

    Here is the commands and usage.

    https://en.opensuse.org/Portal:Snapper

  8. #8
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,748

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    If you don't use BTRFS then you do not use snapper. So it must be something else. Since you have chosen your own path it is hard to say. What else may you have done out of the ordinary??

  9. #9

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    I am not sure what I did out of the ordinary.

    1. "zypper dup" is what I did: it hung, repeatedly, hopelessly, on that particular package.

    2. in an effort to narrow down the problem, I downloaded the problematic package alone, used "rpm -iv". As I reported to you, it also hangs: after letting me know that it is "Preparing packages..."

    3. I tried "zypper dup" after some time again, it happily installs other packages and then hung on this one again.

    4. I kept trying and I posted this thread.

    5. I keep trying and see the above (1, 2, 3) repeatedly.

    Perhaps answering zypper's late complaint about a file conflict was "out of the ordinary," but (a) it made no difference, zypper didn't install anything in response to my reply (I checked) and (b) I since (half an hour ago) figured out from where that file conflict complaint came. I fixed it, it is irrelevant to this bug: it arose from a symlink I inserted somewhere in order to try to still make kernel modules compile. They didn't -- but I don't think this is irrelevant to the installation problem itself.

    Can you let me know how I can more information out of zypper or rpm, to see where the problem may have arisen?

    G.

  10. #10
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    3,974

    Default Re: rpm (zypper) hangs on kernel-default-devel-4.1.39-53.1.x86_64

    If not upgrading from an earlier version to 42.1, or upgrading from 42.1 to 42.2, then why did you use zypper dup instead of zypper up? Just curious.

    ... and, with zypper dup, perhaps your repo list needs checking.
    -Gerry Makaro
    Fraser-Bell Info Tech
    Solving Tech Mysteries since the Olden Days!
    ~~
    If I helped you, consider clicking the Star at the bottom left of my post.

Page 1 of 2 12 LastLast

Posting Permissions

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