Bug 1098748 - Can not install kernel source package
Can not install kernel source package
Status: RESOLVED INVALID
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: libzypp
Current
x86-64 openSUSE Factory
: P5 - None : Critical (vote)
: ---
Assigned To: E-mail List
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-22 07:37 UTC by Dr. Werner Fink
Modified: 2018-06-25 10:54 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. Werner Fink 2018-06-22 07:37:58 UTC
Just tried to install kerneö sources by using zypper

 zypper search-packages -d kernel-source
 Could not search for the package: SUSE::Connect::ApiError: 
 Cannot read index for repository medical.
 Following packages were found in following modules:

 Package                                     Module or Repository
 ------------------------------------------  --------------------
 srcpackage:kernel-source-4.17.1-1.5.noarch  repo-source         

 To activate the respective module or product, use SUSEConnect --product.
 Use SUSEConnect --help for more details.

 zypper install --repo repo-source kernel-source-4.17.1-1.5.noarch
 Loading repository data...
 Reading installed packages...
 'kernel-source-4.17.1-1.5.noarch' not found in package names. Trying capabilities.
 No provider of 'kernel-source-4.17.1-1.5.noarch' found.
 Resolving package dependencies...

 Nothing to do.

 SUSEConnect --list-extensions
 To list extensions, you must first register the base product, using: SUSEConnect -r <registration code>

... maybe I'm wrong but Tumbleweed != SLES
Comment 1 Dr. Werner Fink 2018-06-22 07:46:54 UTC
rng-tools are also missed:

 noether:~ # zypper in rng-tools
 Loading repository data...
 Reading installed packages...
 'rng-tools' not found in package names. Trying capabilities.
 No provider of 'rng-tools' found.
 Resolving package dependencies...

 Nothing to do.

... aha ...

noether:~ # zypper se -d rng-tools
Loading repository data...
Reading installed packages...

S | Name                  | Summary                                   | Type      
--+-----------------------+-------------------------------------------+-----------
  | rng-tools             | Support daemon for hardware random device | srcpackage
  | rng-tools-debuginfo   | Debug information for package rng-tools   | package   
  | rng-tools-debugsource | Debug sources for package rng-tools       | package   

Note: For an extended search including not yet activated remote resources please use 'zypper
search-packages'.
noether:~ # zypper search-packages -d rng-tools
Could not search for the package: SUSE::Connect::ApiError: 
Cannot read index for repository medical.
Following packages were found in following modules:

Package                              Module or Repository
-----------------------------------  --------------------
rng-tools-debuginfo-5-7.11.i586      repo-debug          
rng-tools-debuginfo-5-7.11.x86_64    repo-debug          
rng-tools-debugsource-5-7.11.i586    repo-debug          
rng-tools-debugsource-5-7.11.x86_64  repo-debug          
srcpackage:rng-tools-5-7.11.noarch   repo-source         

To activate the respective module or product, use SUSEConnect --product.
Use SUSEConnect --help for more details.
Comment 2 Dr. Werner Fink 2018-06-22 07:53:19 UTC
Without be able to install source tree of kernel it is somewhat difficult to work
Comment 3 Stefan Hundhammer 2018-06-25 10:08:42 UTC
Lada, can you have a look?

An openSUSE user should never be required to register his machine at SCC (as a matter of fact, he cannot even do this), so I don't quite understand that error

  To activate the respective module or product, use SUSEConnect --product.
     Use SUSEConnect --help for more details.

from comment #0.
Comment 4 Stefan Hundhammer 2018-06-25 10:11:59 UTC
Werner, please check that all the repos you are using on that system are plain repo-md repos, and no repo managed by a service is in use:

  LANG=C zypper ls

(check the last column)
Comment 5 Ladislav Slezák 2018-06-25 10:15:40 UTC
Hm, I guess you installed some zypper plugin as the "search-packages" functionality is not available in Leap 15.0:


# zypper search-packages
Unknown command 'search-packages'
Type 'zypper help' to get a list of global options and commands.

In case 'search-packages' is not a typo it's probably not a built-in command, but provided as a subcommand or plug-in (see 'zypper help subcommand').
In this case a specific package providing the subcommand needs to be installed first. Those packages are often named 'zypper-search-packages' or 'zypper-search-packages-plugin'.


And I guess that plugin is designed for SLE...
Comment 6 Dr. Werner Fink 2018-06-25 10:20:17 UTC
(In reply to Stefan Hundhammer from comment #4)
> Werner, please check that all the repos you are using on that system are
> plain repo-md repos, and no repo managed by a service is in use:
> 
>   LANG=C zypper ls
> 
> (check the last column)

#  | Alias                            | Name                               | Enabled | GPG Check | Refresh | Type  
---+----------------------------------+------------------------------------+---------+-----------+---------+-------
1  | Publishing_TeXLive               | Publishing_TeXLive                 | Yes     | (r ) Yes  | No      | rpm-md
2  | Virtualization                   | Virtualization                     | Yes     | (r ) Yes  | No      | rpm-md
3  | X11 Utilities                    | X11 Utilities                      | Yes     | (r ) Yes  | Yes     | rpm-md
4  | X2Go                             | X2Go                               | Yes     | (r ) Yes  | No      | rpm-md
5  | download.opensuse.org-non-oss    | Main Repository (NON-OSS)          | Yes     | (r ) Yes  | Yes     | rpm-md
6  | download.opensuse.org-tumbleweed | Main Update Repository             | Yes     | (r ) Yes  | Yes     | rpm-md
7  | home_gasinvein_anbox             | Anbox (openSUSE_Tumbleweed)        | Yes     | (r ) Yes  | No      | rpm-md
8  | linuxdownload.adobe.com-linux    | Adobe Flash Plugin                 | Yes     | ( p) Yes  | Yes     | rpm-md
9  | medical                          | medical                            | No      | ----      | ----    | rpm-md
10 | openSUSE Tools                   | openSUSE Tools                     | Yes     | (r ) Yes  | No      | rpm-md
11 | opensuse-guide.org-repo          | opensuse-guide.org-repo            | Yes     | (r ) Yes  | Yes     | rpm-md
12 | packman.inode.at-suse            | Packman Repository                 | Yes     | (r ) Yes  | Yes     | rpm-md
13 | repo-debug                       | openSUSE-Tumbleweed-Debug          | Yes     | (r ) Yes  | No      | rpm-md
14 | repo-source                      | openSUSE-Tumbleweed-Source         | Yes     | (r ) Yes  | Yes     | rpm-md
15 | repo-source-non-oss              | openSUSE-Tumbleweed-Source-Non-Oss | No      | ----      | ----    | yast2 
16 | server:mail                      | server:mail                        | No      | ----      | ----    | rpm-md
17 | windowmanagers                   | windowmanagers                     | No      | ----      | ----    | rpm-md
Comment 7 Michael Andres 2018-06-25 10:20:58 UTC
(In reply to Dr. Werner Fink from comment #0)
> Just tried to install kerneö sources by using zypper
> 
>  zypper search-packages -d kernel-source
>  Could not search for the package: SUSE::Connect::ApiError: 
>  Cannot read index for repository medical.

This is related to bug#1092822. 

Zyppers hint message to the 'search-packages' command depends on the presence of this search plugin (in system or repos).

The package is SLES specific and should IMO not be available in openSUSE. Due to the 'factory first' policy however it's checked in to factory, but the spec file does not disable builds on openSUSE.
Comment 8 Ladislav Slezák 2018-06-25 10:23:05 UTC
(In reply to Dr. Werner Fink from comment #2)
> Without be able to install source tree of kernel it is somewhat difficult to
> work

AFAIK the kernel sources are distributed a bit differently, the sources are also available as a binary RPM (besides the SRPM available).

Simple "zypper install kernel-source" works for me in Leap15.0...
Comment 9 Dr. Werner Fink 2018-06-25 10:23:44 UTC
(In reply to Ladislav Slezák from comment #5)
> Hm, I guess you installed some zypper plugin as the "search-packages"
> functionality is not available in Leap 15.0:
> 
> 
> # zypper search-packages
> Unknown command 'search-packages'
> Type 'zypper help' to get a list of global options and commands.
> 
> In case 'search-packages' is not a typo it's probably not a built-in
> command, but provided as a subcommand or plug-in (see 'zypper help
> subcommand').
> In this case a specific package providing the subcommand needs to be
> installed first. Those packages are often named 'zypper-search-packages' or
> 'zypper-search-packages-plugin'.
> 
> 
> And I guess that plugin is designed for SLE...

Hmmm .... should remove this/some plugin/s:

rpmqpack | grep zypper
zypper
zypper-aptitude
zypper-lifecycle-plugin
zypper-log
zypper-migration-plugin
zypper-search-packages-plugin
Comment 10 Michael Andres 2018-06-25 10:25:41 UTC
  @Werner: See Publishing_TeXLive et.al. You have quite a lot repos
  enabled but without autorefresh turned on for them. Is this intentional?
Comment 11 Michael Andres 2018-06-25 10:28:02 UTC
AFAIK these are SLE specific:
  zypper-lifecycle-plugin
  zypper-migration-plugin
  zypper-search-packages-plugin


zypper-log and zypper-aptitude are common. zypper-log is sometimes even usefull (IMO).
Comment 12 Dr. Werner Fink 2018-06-25 10:29:29 UTC
 rpm -e zypper-search-packages-plugin
 zypper install  kernel-source                  
 Loading repository data...
 Reading installed packages...
 'kernel-source' not found in package names. Trying capabilities.
 No provider of 'kernel-source' found.
 Resolving package dependencies...

remains after zypper ref ... nevertheless

 zypper se  kernel-source
 Loading repository data...
 Reading installed packages...
 
 S | Name          | Summary                  | Type      
 --+---------------+--------------------------+-----------
   | kernel-source | The Linux Kernel Sources | srcpackage
Comment 13 Dr. Werner Fink 2018-06-25 10:30:38 UTC
(In reply to Michael Andres from comment #10)
>   @Werner: See Publishing_TeXLive et.al. You have quite a lot repos
>   enabled but without autorefresh turned on for them. Is this intentional?

YEP, as testing TeXLive but avoid installing 3000 packages after every rebuild
Comment 14 Dr. Werner Fink 2018-06-25 10:33:34 UTC
(In reply to Michael Andres from comment #11)
> AFAIK these are SLE specific:
>   zypper-lifecycle-plugin
>   zypper-migration-plugin
>   zypper-search-packages-plugin
> 
> 
> zypper-log and zypper-aptitude are common. zypper-log is sometimes even
> usefull (IMO).

Removing the plugins and refresh does not change anything
Comment 15 Michael Andres 2018-06-25 10:39:54 UTC
> $ zypper se -s kernel-source
> 
> S | Name                  | Type    | Version    | Arch   | Repository
> --+-----------------------+---------+------------+--------+-----------
>   | kernel-source         | package | 4.17.2-1.4 | noarch | tw-oss    
>   | kernel-source-vanilla | package | 4.17.2-1.4 | noarch | tw-oss    
>   | openafs-kernel-source | package | 1.8.0-1.18 | i586   | tw-oss    
>   | openafs-kernel-source | package | 1.8.0-1.20 | x86_64 | tw-oss    

Use `zypper lr -u` to check whether your repo locations are reasonable:

> $ zypper lr -u
> Repository priorities are without effect. All enabled repositories share the same priority.
> 
> # | Alias      | Name       | Enabled | GPG Check | Refresh | URI                                                  
> --+------------+------------+---------+-----------+---------+------------------------------------------------------
> 1 | debug      | debug      | No      | ----      | ----    | http://download.opensuse.org/tumbleweed/repo/debug   
> 2 | tw-non-oss | tw-non-oss | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss/
> 3 | tw-oss     | tw-oss     | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/oss/    


Do a `zypper ref -f` and check for reported errors. If none and the kernel-source is not found attach the zypper.log (or is it a WS I can access? Then I'll have a look at it).
Comment 16 Michael Andres 2018-06-25 10:50:37 UTC
OSS repo was missing :)
Comment 17 Dr. Werner Fink 2018-06-25 10:54:21 UTC
Works now ... missed repro from http://download.opensuse.org/tumbleweed/repo/oss/ ... don't know how this get missed at all