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

Thread: While updating via Zypper, opensuse repo suddenly unavailable, corrupted install -can't even startup

  1. #1

    Default While updating via Zypper, opensuse repo suddenly unavailable, corrupted install -can't even startup

    I had installed openSUSE 12.3 in VirtualBox and was doing a "zyperr up" update (500MB+) when about half way through it said the repo was no longer available. I tried to "retry" but kept getting the same message. After I shutdown the computer and restarted, it couldn't get past the boot menu. I tried the "advanced" options and at different times tried selecting both listed versions but nothing would start up. It appears to be corrupted. How does this happen? Why doesn't it download everything first before starting installation?

  2. #2

    Default AW: While updating via Zypper, opensuse repo suddenly unavailable, corrupted install -can't even sta

    Quote Originally Posted by 6tr6tr View Post
    Why doesn't it download everything first before starting installation?
    This can be configured in /etc/zypp/zypp.conf:
    Code:
    ##
    ## Commit download policy to use as default.
    ##
    ##  DownloadOnly,       Just download all packages to the local cache.
    ##                      Do not install. Implies a dry-run.
    ##
    ##  DownloadInAdvance,  First download all packages to the local cache.
    ##                      Then start to install.
    ##
    ##  DownloadInHeaps,    Similar to DownloadInAdvance, but try to split
    ##                      the transaction into heaps, where at the end of
    ##                      each heap a consistent system state is reached.
    ##
    ##  DownloadAsNeeded    Alternating download and install. Packages are
    ##                      cached just to avid CD/DVD hopping. This is the
    ##                      traditional behaviour.
    ##
    ##  <UNSET>             If a value is not set, empty or unknown, we pick
    ##                      some sane default.
    ##
    ## commit.downloadMode =
    I _think_ "DownloadInHeaps" is the default, so that 500MB could have been too much for downloading all at once before installing.

    Regarding your installation:
    What exactly happens when you try to boot?

    Does the bootsplash appear? If yes, try to press ESC to see messages.
    Maybe post a screenshot then.

    Or can the bootloader not even load the kernel?

  3. #3

    Default Re: AW: While updating via Zypper, opensuse repo suddenly unavailable, corrupted install -can't even

    Quote Originally Posted by wolfi323 View Post
    This can be configured in /etc/zypp/zypp.conf:
    Code:
    ##
    ## Commit download policy to use as default.
    ##
    ##  DownloadOnly,       Just download all packages to the local cache.
    ##                      Do not install. Implies a dry-run.
    ##
    ##  DownloadInAdvance,  First download all packages to the local cache.
    ##                      Then start to install.
    ##
    ##  DownloadInHeaps,    Similar to DownloadInAdvance, but try to split
    ##                      the transaction into heaps, where at the end of
    ##                      each heap a consistent system state is reached.
    ##
    ##  DownloadAsNeeded    Alternating download and install. Packages are
    ##                      cached just to avid CD/DVD hopping. This is the
    ##                      traditional behaviour.
    ##
    ##  <UNSET>             If a value is not set, empty or unknown, we pick
    ##                      some sane default.
    ##
    ## commit.downloadMode =
    I _think_ "DownloadInHeaps" is the default, so that 500MB could have been too much for downloading all at once before installing.

    Regarding your installation:
    What exactly happens when you try to boot?

    Does the bootsplash appear? If yes, try to press ESC to see messages.
    Maybe post a screenshot then.

    Or can the bootloader not even load the kernel?
    Cannot even load the kernel.

  4. #4

    Default Re: While updating via Zypper, opensuse repo suddenly unavailable, corrupted install -can't

    Quote Originally Posted by 6tr6tr View Post
    Cannot even load the kernel.
    And what error message do you get?

    Maybe the easiest thing to do to repair this would be to boot from an installation medium, and select "Upgrade an existing installation". You could even try to deselect all packages except the kernel on the software selection, but it depends on the current state of the system whether that works.

  5. #5

    Default Re: While updating via Zypper, opensuse repo suddenly unavailable, corrupted install -can't

    Quote Originally Posted by wolfi323 View Post
    And what error message do you get?

    Maybe the easiest thing to do to repair this would be to boot from an installation medium, and select "Upgrade an existing installation". You could even try to deselect all packages except the kernel on the software selection, but it depends on the current state of the system whether that works.
    Since it was a fresh install, I just blew it away and started over. but i'm afraid of this happening again but after i've been using it for a while and have important data on there. How do I prevent this from happening again?

  6. #6

    Default Re: While updating via Zypper, opensuse repo suddenly unavailable, corrupted install -can't

    Quote Originally Posted by 6tr6tr View Post
    Since it was a fresh install, I just blew it away and started over. but i'm afraid of this happening again but after i've been using it for a while and have important data on there. How do I prevent this from happening again?
    Well, I never had something like this happening on my system. And in earlier versions the default was to download and install each package separately.
    Apparently somehow your network connection broke because of some updated package (NetworkManager maybe?). Perhaps it would have been enough to reconnect or run "systemctl network restart" to continue the update...

    But I already told you in my first reply how to make zypper download _all_ packages in advance:
    Open /etc/zypp/zypp.conf in a text editor (with root permissions), search for that line "## commit.downloadMode =" and change it to:
    Code:
    commit.downloadMode = DownloadInAdvance

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: While updating via Zypper, opensuse repo suddenly unavailable,corrupted install -can't even startup

    On 2013-10-22 10:16, wolfi323 wrote:

    > Apparently somehow your network connection broke because of some updated
    > package (NetworkManager maybe?). Perhaps it would have been enough to
    > reconnect or run "systemctl network restart" to continue the update...


    Exactly that happened to me yesterday with 13.1. I lost DNS.

    > But I told you in my first reply how to make zypper download _all_
    > packages in advance:
    > Open /etc/zypp/zypp.conf in a text editor (with root permissions),
    > search for that line "## commit.downloadMode =" and change it to:


    A dev (Cristian) told me to " use zypper with --download-only".

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  8. #8

    Default Re: While updating via Zypper, opensuse repo suddenly unavailable,corrupted install -can't even star

    Quote Originally Posted by robin_listas View Post
    On 2013-10-22 10:16, wolfi323 wrote:

    > Apparently somehow your network connection broke because of some updated
    > package (NetworkManager maybe?). Perhaps it would have been enough to
    > reconnect or run "systemctl network restart" to continue the update...


    Exactly that happened to me yesterday with 13.1. I lost DNS.

    > But I told you in my first reply how to make zypper download _all_
    > packages in advance:
    > Open /etc/zypp/zypp.conf in a text editor (with root permissions),
    > search for that line "## commit.downloadMode =" and change it to:


    A dev (Cristian) told me to " use zypper with --download-only".

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)
    Thanks! After I do a "zypper --download-only up" (is that the correct command?) how do I then apply the downloaded updates?

  9. #9
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: While updating via Zypper, opensuse repo suddenly unavailable,corrupted install -can't even star

    Quote Originally Posted by 6tr6tr View Post
    Thanks! After I do a "zypper --download-only up" (is that the correct command?) how do I then apply the downloaded updates?
    You can also use:

    Code:
    sudo zypper -d up
    For help with Zypper, please look at my blog on the subject: Zypper Command - Zypper Package Management Menu System - Version 2.00 - Blogs - openSUSE Forums

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  10. #10

    Default Re: While updating via Zypper, opensuse repo suddenly unavailable,corrupted install -can't even

    Quote Originally Posted by 6tr6tr View Post
    Thanks! After I do a "zypper --download-only up" (is that the correct command?) how do I then apply the downloaded updates?
    No, it's "zypper up --download-only".
    If you run "zypper up" afterwards it should not download anything but just install the already downloaded packages from the cache (provided there are no new updates in the meantime of course).
    Or install them manually with "rpm -U", the cache is in /var/cache/zypp/packages/.

    But I would say it's easier to just set that option in /etc/zypp/zypp.conf as I already suggested, and just continue using "zypper up" like before. This has the same effect (i.e. download _all_ updates first, and then install them) and also applies to YaST and Apper/PackageKit.

    Or use "zypper up --download in-advance".

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
  •