Using zypper to update tumbleweed

Hi, I’ve had a search for my issue and I can’t find the answer, I have a tumbleweed installation which is running well. It is my primary computer, I used to use KDE Neon, but that had an upgrade that went terribly wrong a year or so ago, so I moved to Tumbleweed.
I’m experimenting using Discover/pkcon/zypper for updates - are there any specific recommendations?
I get an error when I use sudo zypper dup or sudo zypper update
The error is `Repository ‘repo-Kernel:Tools’ is invalid.
[openSUSE-Leap-42.3-Kernel:Tools|https://download.opensuse.org/repositories/Kernel:/tools/openSUSE_Leap_42.3/] Failed to retrieve new repository metadata.
History:

  • [openSUSE-Leap-42.3-Kernel:Tools|https://download.opensuse.org/repositories/Kernel:/tools/openSUSE_Leap_42.3/] Repository type can’t be determined.
    Please check if the URIs defined for this repository are pointing to a valid repository.
    Warning: Skipping repository ‘repo-Kernel:Tools’ because of the above error.
    Some of the repositories have not been refreshed because of an error.`

What I can’t find is the correct way of fixing this error can anyone help please?
Thank you

You added some invalid repository by using 1-Click installations. Show your repo list
zypper lr -d

1 Like

I’ve had to remove the “htt” from the urls

#  | Alias                           | Name           | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                                                   | Service
---+---------------------------------+----------------+---------+-----------+---------+------+----------+--------+---------------------------------------------------------------------------------------+---------
 1 | NVIDIA:repo-non-free            | repo-non-free  | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | ps://download.nvidia.com/opensuse/tumbleweed                                       | NVIDIA
 2 | home_adrianSuSE                 | AdrianSuSE's-> | Yes     | (r ) Yes  | No      | -    |   99     | rpm-md | ps://download.opensuse.org/repositories/home:/adrianSuSE/openSUSE_Factory/         | 
 3 | home_derselbst_anmp             | ANMP (openSU-> | Yes     | (r ) Yes  | No      | -    |   99     | rpm-md | ps://download.opensuse.org/repositories/home:/derselbst:/anmp/openSUSE_Tumbleweed/ | 
 4 | openSUSE-Leap-42.3-Kernel:Tools | repo-Kernel:-> | Yes     | ( p) Yes  | Yes     | -    |   99     | N/A    | ps://download.opensuse.org/repositories/Kernel:/tools/openSUSE_Leap_42.3/          | 
 5 | openSUSE:repo-non-oss           | repo-non-oss   | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | p://cdn.opensuse.org/tumbleweed/repo/non-oss?mediahandler=curl2                    | openSUSE
 6 | openSUSE:repo-openh264          | repo-openh264  | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | p://codecs.opensuse.org/openh264/openSUSE_Tumbleweed?mediahandler=curl2            | openSUSE
 7 | openSUSE:repo-oss               | repo-oss       | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | p://cdn.opensuse.org/tumbleweed/repo/oss?mediahandler=curl2                        | openSUSE
 8 | openSUSE:repo-oss-debug         | repo-oss-debug | No      | ----      | ----    | -    |   99     | rpm-md | p://cdn.opensuse.org/debug/tumbleweed/repo/oss?mediahandler=curl2                  | openSUSE
 9 | openSUSE:repo-oss-source        | repo-oss-sou-> | No      | ----      | ----    | -    |   99     | N/A    | p://cdn.opensuse.org/source/tumbleweed/repo/oss?mediahandler=curl2                 | openSUSE
10 | openSUSE:update-tumbleweed      | update-tumbl-> | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | p://cdn.opensuse.org/update/tumbleweed?mediahandler=curl2                          | openSUSE

Welcome to the openSUSE forums.

You should only update Tumbleweed with zypper dup (as root of course).

When you get problems (error messages), please post the complete zypper dup session (copy/paste including the prompt/command, all output and the next prompt and do the paste using the </> button from the post editor).

When there are messages about repositories not being OK, then also list your repos with zypper lr -d.

BTW, a more elaborate explanation on how to post code:

1 Like

Repo number 4 is invalid (non existing) and needs to be removed:
sudo zypper rr 4

Afterwards perform an upgrade
sudo zypper dup

Repo 2 and 3 are untested home repos which will cause problems. Until you have some experience and know how to deal with problems, home repositories are not recommended.

@Hui - thank you for the incredibly quick reply, much appreciated. I’ll do that. Is there a potential downside to doing this?

A downside when you remove a non existing repository? No. But you will be able to perform a zypper dup afterwards again…

Excellent - thank you very much. Removed repo, ran sudo zypper dup rebooted, all running fine.
:clap:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.