somehow I upgraded to 13.1 (bottle) and everything broke - how to get back

This is maddening, Yesterday apper said it had 1654 updates and l actually let it do it without thinking.
For some reason it updated me to 13.1 (bottle), probably I had some repo on by accident.

Afterward I experienced a couple problems that include window tearing and slow/unusable performance.
I then install the latest AMD drivers via sabastian’s script hoping to solve the issues.

Now I can only boot into icewm.
Even the old kernels will not boot properly.

What is the best way to diagnose the problems? Dmesg/messages shows nothing interesting.

Is there a way to revert back completely?

What to do now?

You are not switching to 13.1 without the right repos added. Please hold off on replies till moved to the right forum.

Thank You,

Post your repo list

zypper lr -d

Now open for replies…

Thank You,

If you want to return to 12.3, make sure ONLY 12.3 repos are enabled and then use “zypper dup”. Have you used it before?

lee@linux-aa3c:~> zypper lr -d#  | Alias                                            | Name                                             | Enabled | Refresh | Priority | Type   | URI                                                                                                            | Service
---+--------------------------------------------------+--------------------------------------------------+---------+---------+----------+--------+----------------------------------------------------------------------------------------------------------------+--------
 1 | AMD_driver                                       | AMD driver                                       | Yes     | Yes     |   99     | rpm-md | http://geeko.ioda.net/mirror/amd-fglrx/openSUSE_12.3/                                                          |        
 2 | Archiving                                        | Archiving                                        | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Archiving/openSUSE_12.3/                                             |        
 3 | Kernel:stable                                    | Kernel:stable                                    | No      | No      |   99     | rpm-md | http://download.opensuse.org/repositories/Kernel:/stable/standard                                              |        
 4 | PTA                                              | PTA                                              | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_12.2/                                |        
 5 | Packman Repository                               | Packman Repository                               | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_12.3/                                                       |        
 6 | devel:languages:python                           | devel:languages:python                           | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.3/                              |        
 7 | games                                            | games                                            | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/games/openSUSE_12.3/                                                 |        
 8 | google-musicmanager                              | google-musicmanager                              | No      | No      |   99     | rpm-md | http://dl.google.com/linux/musicmanager/rpm/stable/x86_64                                                      |        
 9 | home:Akoellh:Kernelmodules                       | home:Akoellh:Kernelmodules                       | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/repositories/home:/Akoellh:/Kernelmodules/openSUSE_12.3_Update/                   |        
10 | home:jritzerfeld:branches:devel:openSUSE:Factory | home:jritzerfeld:branches:devel:openSUSE:Factory | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/jritzerfeld:/branches:/devel:/openSUSE:/Factory/openSUSE_12.3/ |        
11 | isv:ownCloud:devel                               | isv:ownCloud:devel                               | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/isv:/ownCloud:/devel/openSUSE_12.3/                                  |        
12 | kde_extra_latest                                 | kde extra latest                                 | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/KDE_Release_411_openSUSE_12.3/                            |        
13 | kde_lastest_stable                               | kde lastest stable                               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Release:/411/openSUSE_12.3/                                     |        
14 | libdvdcss repository                             | libdvdcss repository                             | Yes     | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/12.3/                                                                           |        
15 | malcom_cpu_stuff                                 | malcom cpu stuff                                 | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/malcolmlewis:/Miscellanous/openSUSE_12.3/                      |        
16 | network:chromium                                 | network:chromium                                 | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/network:/chromium/openSUSE_12.3/                                     |        
17 | openSUSE:Factory                                 | openSUSE:Factory                                 | No      | No      |   99     | yast2  | http://download.opensuse.org/factory/repo/oss/                                                                 |        
18 | repo-debug                                       | openSUSE-12.3-Debug                              | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/12.3/repo/oss/                                                 |        
19 | repo-debug-update                                | openSUSE-12.3-Update-Debug                       | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/12.3/                                                                |        
20 | repo-debug-update-non-oss                        | openSUSE-12.3-Update-Debug-Non-Oss               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/12.3-non-oss/                                                        |        
21 | repo-non-oss                                     | openSUSE-12.3-Non-Oss                            | No      | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.3/repo/non-oss/                                                   |        
22 | repo-oss                                         | openSUSE-12.3-Oss                                | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.3/repo/oss/                                                       |        
23 | repo-source                                      | openSUSE-12.3-Source                             | No      | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/12.3/repo/oss/                                                |                                                                         
24 | repo-update                                      | openSUSE-12.3-Update                             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.3/                                                                      |                                                                         
25 | repo-update-non-oss                              | openSUSE-12.3-Update-Non-Oss                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.3-non-oss/                                                              |                                                                                                                                 
26 | soundKonvertor                                   | soundKonvertor                                   | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/HessiJames/openSUSE_12.3/                                      |                                                                                                                                 
lee@linux-aa3c:~>                                                                                                                                                                                 
                                                                      

Gah, sorry about the formatting I can not seem to get this pasted correctly. It always comes out with wrapped lines?? Hopefully it is readable.

You didn’t upgrade to 13.1 but Factory… :wink:
Remove repo #17 and run “zypper dup” to get back to 12.3:

sudo zypper rr 13
sudo zypper dup

Ha Ok, thanks for the reply.

Just to check my sanity, if I run zypper dup I get this.

17 packages to upgrade, 1845 to downgrade, 40 new, 1 to reinstall, 96 to remove, 87  to change vendor, 2 to change arch.
Overall download size: 1.17 GiB. After the operation, additional 566.9 MiB will be used.
Continue? [y/n/?] (y): y

Does it look ok to preceed?

On 2013-11-01 19:16, wolfi323 wrote:

> You didn’t upgrade to 13.1 but Factory… :wink:
> Remove repo #17 and run “zypper dup” to get back to 12.3:
>
> Code:
> --------------------
> sudo zypper rr 13
> sudo zypper dup
> --------------------

A “zypper dup” with all those repos active is going to be a nightmare.
I would recommend disabling all repos except oss, non-oss, updates, and
non-oss updates, and then do the zypper dup.

After rebooting and checking, repos can be reactivted as needed, and
whatever needs to be downloaded from them, download and install again.


Cheers / Saludos,

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

Most of the repos are disabled anyway. I would say there’s no need to disable Packman and the KDE repos, because the packages that have higher versions from there are actually wanted.

And the downgrade of 1845 packages sounds about right, if the system was fully at Factory level already.

On 2013-11-01 20:06, wolfi323 wrote:
>
> robin_listas;2594990 Wrote:

> Most of the repos are disabled anyway. I would say there’s no need to
> disable Packman and the KDE repos, because the packages that have higher
> versions from there are actually wanted.

I’m more conservative :slight_smile:

> And the downgrade of 1845 packages sounds about right, if the system was
> fully at Factory level already.

Probably. Notice that the initial breakage had 1654 updates… there are
still about 200 more packages to downgrade.


Cheers / Saludos,

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

@anika200, you didn’t answer my question re zypper dup experience, but now you ask people to predict the result <sigh>.
You may get away with it, and save time if it works. However, if you are inexperienced, I suggest you follow the more cautious approach being advised re repos.

Those most likely come from one of those disabled repos.
Also, the KDE repos have been restructured recently, that could have caused packages to get a lower build number, and a normal update doesn’t downgrade those. But those would be downgraded anyway even if he disabled Packman and KDE as well.

And why should you be overly conservative, when the system is broken anyway ATM? :wink:
With these repos I would just go for it. I see nothing in there which should cause problems.

Actually there is no need to gamble as “zypper dup” will make a proposal (as you probably know) and complain about dependency issues before asking for the user’s confirmation. It’s also possible to do a dry run using “zypper dup -D” where nothing is updated. Then if the test case proposal looks problematic one can reply “no” (if one replies “yes”, I think a test case is saved and used on the subsequent real zypper dup).

Yeah, but you won’t see which package will be taken from which repo (unless you specify the -v option of course), that’s the “gamble”.
But with ~2000 packages this will be hard to verify anyway.

But I want to stress again that I would not expect problems with that repo setup…

Too little too late, but I like to make a clone of my /root drive before I do any updating. Try Clonezilla, it will be like it never happened in about 2 minutes.

On 2013-11-01 21:46, wolfi323 wrote:
>
> robin_listas;2595003 Wrote:

> And why should you be overly conservative, when the system is broken
> anyway ATM? :wink:

Habit? :slight_smile:

Must come from my engineering training. I always think of what could go
wrong. My colleagues hate me for that, but hey, sometimes I get the last
laugh :wink:


Cheers / Saludos,

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

Update:

Wow, thanks for all the help and discussion.
The deed was done with “zypper dup” as wolfi323 suggested. It was not pretty and I would definitely do a few things different next time.
But It seems like everything was pretty much successful. rotfl! I have my computer back after day or so, not bad.
Thanks again.

Things learned:

  1. You positively have to remember to UNCHECK the option to keep a repo (make permanent) during a One-Click install.
  2. OpenSUSE zypper is so **** smart it can get you recovered from disaster, thats always nice in an OS.
  3. OpenSUSE zypper is so **** dumb that it will suggest an upgrade of +1600 packages based on a repo that just got added the 24hrs before via a One-Click install.
  4. Having a full backup via StoreBackup is very comforting but at the same time you really do not want to do a restore from backup. (can not wait for system wide snapshots)

Problems in dup:
I just want to note that I had very many errors and stops along the way. The most frustrating part was that the command line would never show any errors until after the command was halted via Ctl-C.

So for example the progress would indicate downloading and then it would read Installing…Forever… ever… and ever… Hours go by. I intervene with Ctl-C and finally you get to see a message printed that indicates there was some problem or other and the process can not continue.
Things speed up once I figure this out but you still have to be there at the right time to see this blockage. I then would have to start the whole “zypper dup” again, scary indeed.

I would also suggest removing some third party repos and especially any kernel modules that rely on these. They just caused problems and stops but you can add these back later.

I would also suggest rebooting into init 3 before doing the “zypper dup”.

I’ve discovered that too. gnome will slowly die during upgrading it and it just seems cleaner:)

On 2013-11-02 22:46, anika200 wrote:

> whole “zypper dup” again, scary indeed.
>
> I would also suggest removing some third party repos and especially any
> kernel modules that rely on these. They just caused problems and stops
> but you can add these back later.
>
> I would also suggest rebooting into init 3 before doing the “zypper
> dup”.

Absolutely. I have recommended those two things for ages. But others
refuse to agree, so I typically shut up :-}


Cheers / Saludos,

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