Big Repo Issues... :(

Hi.

I have two identical machines, with opensuse leap 15.2 on both, but for some reason in one of them the yast software management and zypper are giving me terrible headaches for some days now. I’m guessing there is something damaged in some file I can’t find out.

Usually the errors I’m getting boils down to (for example I’m trying to install cmake here, but it actually failed with bison, flex, etc):

Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;643836c7: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Since it has shown errors even to refresh basic repositories as the main one, I moved to the “lower level” solution I knew:

rm -rf /var/cache/zypp
zypper clean
rm -rf /tmp/*
rm -rf /var/tmp/
zypper ref

But I’m still getting failures as:

Retrieving repository 'Repositório principal' metadata ..........................[error]
Repository 'Repositório principal' is invalid.
[repo-oss|http://download.opensuse.org/distribution/leap/15.2/repo/oss/] Valid metadata not found at specified URL                                                              
History:                                                                                
 - Cannot write file '/var/tmp/AP_0xhH9sUg/repodata/b34589c0d72ea1f76e6e54400a1f74fb01a9687abda8262802ef8f419233fda0-susedata.xml.gz.new.zypp.XXXXXX'.                          
 - Can't provide ./repodata/b34589c0d72ea1f76e6e54400a1f74fb01a9687abda8262802ef8f419233fda0-susedata.xml.gz                                                                    

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Repositório principal' because of the above error.

This is taking forever and I’m not being able to move forward: could someone please help me fix it?

Thanks a lot in advance!

Please be aware of the “discontinued versions” issues: <https://en.opensuse.org/Lifetime#Discontinued_distributions>

  • Leap 15.2 was discontinued on the 4th of January 2022.

But, you’re lucky – the repository is still available on the Internet: <https://download.opensuse.org/distribution/leap/15.2/repo/oss/> <https://download.opensuse.org/distribution/leap/15.2/>

  • Please use “zypper refresh --force” to force a re-read of the meta-data of each Leap 15.2 repository.
 - Can't provide ./repodata/b34589c0d72ea1f76e6e54400a1f74fb01a9687abda8262802ef8f419233fda0-susedata.xml.gz

In <https://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/>
‘b34589c0d72ea1f76e6e54400a1f74fb01a9687abda8262802ef8f419233fda0-susedata.xml.gz’
is still available: <https://download.opensuse.org/distribution/leap/15.2/repo/oss/repodata/b34589c0d72ea1f76e6e54400a1f74fb01a9687abda8262802ef8f419233fda0-susedata.xml.gz>

  • You need to forcibly refresh the repository meta-data – with the user “root” …

But, there’s also this issue:

- Cannot write file '/var/tmp/AP_0xhH9sUg/repodata/b34589c0d72ea1f76e6e54400a1f74fb01a9687abda8262802ef8f419233fda0-susedata.xml.gz.new.zypp.XXXXXX'.

Please check if, the “/var” partition has enough free space – it may well be full …

  • And, please check that, the user “root” can write to the ‘/var/tmp/’ directory – there may well be some weird permissions applied to that directory tree – ACLs ???
  • Even worse, the “/var” partition may well be not mounted – for whatever reason …
1 Like

First of all: thanks, @dcurtisfra

Ok, there are some improvements.

zypper refresh --force wasn’t enough on itself, and the /var is not only mounted but also there is plenty of space there.

However: the /var/tmp permissions were for some reason some odd drwxrwxrwt. Just chmod 777 it, and after deletion and cleanup the zypper ref --force finally did its magic! :slight_smile:

onsager:~/Downloads # ls -la /var
total 12
drwxr-xr-x 12 root root  188 Dec 22 12:27 .
drwxr-xr-x 22 root root  240 Dec 22 09:51 ..
-rw-r--r--  1 root root  208 Mar 23  2021 .updated
drwxr-xr-x  6 root root  110 Mar 23  2021 adm
lrwxrwxrwx  1 root root   11 May 16  2020 agentx -> /run/agentx
drwxr-xr-x 12 root root  151 Apr 13 15:43 cache
drwxr-xr-x  2 root root    6 Mar 23  2021 crash
drwxr-xr-x  3 root root   28 Dec 22 12:27 intel
drwxr-xr-x 51 root root 4096 Dec 22 09:53 lib
lrwxrwxrwx  1 root root    9 Dec 22 08:08 lock -> /run/lock
drwxr-xr-x 15 root root 4096 Apr 13 12:53 log
lrwxrwxrwx  1 root root   10 Mar 23  2021 mail -> spool/mail
drwxr-xr-x  2 root root    6 Mar 23  2021 opt
lrwxrwxrwx  1 root root    4 Dec 22 08:08 run -> /run
drwxr-xr-x 11 root root  132 Mar 23  2021 spool
drwxrwxrwt  2 root root    6 Apr 13 15:43 tmp
drwxr-xr-x  2 root root   23 Dec 22 08:12 yp
onsager:~/Downloads # chmod 777 /var/tmp
onsager:~/Downloads # ls -la /var           
total 12
drwxr-xr-x 12 root root  188 Dec 22 12:27 .
drwxr-xr-x 22 root root  240 Dec 22 09:51 ..
-rw-r--r--  1 root root  208 Mar 23  2021 .updated
drwxr-xr-x  6 root root  110 Mar 23  2021 adm
lrwxrwxrwx  1 root root   11 May 16  2020 agentx -> /run/agentx
drwxr-xr-x 12 root root  151 Apr 13 15:51 cache
drwxr-xr-x  2 root root    6 Mar 23  2021 crash
drwxr-xr-x  3 root root   28 Dec 22 12:27 intel
drwxr-xr-x 51 root root 4096 Dec 22 09:53 lib
lrwxrwxrwx  1 root root    9 Dec 22 08:08 lock -> /run/lock
drwxr-xr-x 15 root root 4096 Apr 13 12:53 log
lrwxrwxrwx  1 root root   10 Mar 23  2021 mail -> spool/mail
drwxr-xr-x  2 root root    6 Mar 23  2021 opt
lrwxrwxrwx  1 root root    4 Dec 22 08:08 run -> /run
drwxr-xr-x 11 root root  132 Mar 23  2021 spool
drwxrwxrwx  2 root root    6 Apr 13 15:52 tmp
drwxr-xr-x  2 root root   23 Dec 22 08:12 yp
onsager:~/Downloads # rm -rf /var/cache/zypp
onsager:~/Downloads # zypper clean
All repositories have been cleaned up.
onsager:~/Downloads # rm -rf /tmp/*
onsager:~/Downloads # rm -rf /var/tmp/*
onsager:~/Downloads # zypper refresh --force
Forcing raw metadata refresh
Retrieving repository 'Non-OSS Repository' metadata ..............................[done]
Forcing building of repository cache
Building repository 'Non-OSS Repository' cache ...................................[done]
Forcing raw metadata refresh
Retrieving repository 'Repositório principal' metadata ...........................[done]
Forcing building of repository cache
Building repository 'Repositório principal' cache ................................[done]
Forcing raw metadata refresh
Retrieving repository 'Repositório principal de atualização' metadata ............[done]
Forcing building of repository cache
Building repository 'Repositório principal de atualização' cache .................[done]
Forcing raw metadata refresh
Retrieving repository 'Update Repository (Non-Oss)' metadata .....................[done]
Forcing building of repository cache
Building repository 'Update Repository (Non-Oss)' cache ..........................[done]
All repositories have been refreshed.

On the other hand, there is still issues when I move on to any software installation:

onsager:~/Downloads # zypper in cmake       
Loading repository data...
Warning: Repository 'Repositório principal de atualização' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Resolving package dependencies...

The following 3 NEW packages are going to be installed:
  cmake cmake-full cmake-man

3 new packages to install.
Overall download size: 6.4 MiB. Already cached: 0 B. After the operation, additional
31.4 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving package cmake-full-3.17.0-lp152.1.2.x86_64
                                                   (1/3),   5.7 MiB ( 30.9 MiB unpacked)
Retrieving: cmake-full-3.17.0-lp152.1.2.x86_64.rpm ...................[done (5.5 MiB/s)]
Retrieving package cmake-3.17.0-lp152.1.1.x86_64   (2/3),  77.1 KiB (  715   B unpacked)
Retrieving: cmake-3.17.0-lp152.1.1.x86_64.rpm ........................[done (1.9 KiB/s)]
Retrieving package cmake-man-3.17.0-lp152.2.1.x86_64
                                                   (3/3), 611.4 KiB (530.0 KiB unpacked)
Retrieving: cmake-man-3.17.0-lp152.2.1.x86_64.rpm ................................[done]

Checking for file conflicts: .....................................................[done]
(1/3) Installing: cmake-full-3.17.0-lp152.1.2.x86_64 ............................[error]
Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;6438506e: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Abort, retry, ignore? [a/r/i] (a):

Any new clues?

Those are the normal permissions for “/var/tmp”.

That’s only a warning. For a version that is well past its support life, this is normal. You can ignore those warnings. (Or upgrade to 15.4 to eliminate the warnings).

1 Like

These are exactly the right permissions for /var/tmp.

Hi @nrickert and @arvidjaar.

Concerning the /var/tmp perission, should I push it back to the previous strange one, or is it fine to keep it as common 777? Because zypper ref worked in 777, but did not seem to work in the previous (“/var standard?”) permissions.

Moving on the the zypper install issues, the problem is not the two old repositories warnings, but the errors that come after the files retrieval:

Checking for file conflicts: .....................................................[done]
(1/3) Installing: cmake-full-3.17.0-lp152.1.2.x86_64 ............................[error]
Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;6438506e: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Abort, retry, ignore? [a/r/i] (a):

Any ideas on how to move on from here? :frowning:

Edit: upgrade is not an option because of cuda being a pain…

I would suggest changing it back. I doubt that those permissions were related to your problem.

I’m still wondering whether you are tight on free space in that partition. The errors you report could be due to that.

What’s the output from:

df -H /var

Hi @nrickert .

I’m really uncertain on how to create that specific permission “t” that I’ve never seen before.

Concerning the free space:

> df -H /var
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       161G   37G  125G  23% /

Plenty of space available: That couldn’t be the reason for the previous repositories failures.

Any suggestions on how can I deal with those RPM errors? :frowning: They are being a complete “showstopper” here… :frowning:

Thanks in advance!

@johannesrs Do you have the Update repositories present and enabled?

I see cmake 2.1 there, your trying to install 1.2…

https://download.opensuse.org/update/leap/15.2/

Suggest you add those repositories and force an update…

chmod +t /var/tmp

Do that as the root user.

@malcolmlewis , that is indeed very strange: I just checked, and the main (“Repositório principal”) and its update (“Repositório principal de atualização”) repositories are both enabled on both yast and zypper:

> zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                                 | Name                                 | Enabled | GPG Check | Refresh
---+---------------------------------------+--------------------------------------+---------+-----------+--------
 1 | 15.2                                  | nVidia                               | No      | ----      | ----
 2 | cuda-opensuse15-x86_64                | cuda-opensuse15-x86_64               | No      | ----      | ----
 3 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository                   | No      | ----      | ----
 4 | oneAPI                                | oneAPI                               | No      | ----      | ----
 5 | openSUSE-Leap-15.2-1                  | openSUSE-Leap-15.2-1                 | No      | ----      | ----
 6 | repo-debug                            | Debug Repository                     | No      | ----      | ----
 7 | repo-debug-non-oss                    | Debug Repository (Non-OSS)           | No      | ----      | ----
 8 | repo-debug-update                     | Update Repository (Debug)            | No      | ----      | ----
 9 | repo-debug-update-non-oss             | Update Repository (Debug, Non-OSS)   | No      | ----      | ----
10 | repo-non-oss                          | Non-OSS Repository                   | Yes     | (r ) Yes  | Yes
11 | repo-oss                              | Repositório principal                | Yes     | (r ) Yes  | Yes
12 | repo-source                           | Source Repository                    | No      | ----      | ----
13 | repo-source-non-oss                   | Source Repository (Non-OSS)          | No      | ----      | ----
14 | repo-update                           | Repositório principal de atualização | Yes     | (r ) Yes  | Yes
15 | repo-update-non-oss                   | Update Repository (Non-Oss)          | Yes     | (r ) Yes  | Yes

I have no idea where it can be getting that specific version from…

@nrickert , just reestablished the original “t” permissions as suggested, thanks.

However, I’m back to the worst scenario. Following the permissions reestablishment, I decide to clean up everything and:

# rm -rf /tmp/*
# zypper clean
All repositories have been cleaned up.
# zypper refresh --force
Forcing raw metadata refresh
Retrieving repository 'Non-OSS Repository' metadata ....................................................................................[error]
Repository 'Non-OSS Repository' is invalid.
[repo-non-oss|http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/] Valid metadata not found at specified URL                     
History:                                                                                                                                       
 - Failed to import key.                                                                                                                       

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Non-OSS Repository' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Repositório principal' metadata .................................................................................[error]
Repository 'Repositório principal' is invalid.
[repo-oss|http://download.opensuse.org/distribution/leap/15.2/repo/oss/] Valid metadata not found at specified URL                             
History:                                                                                                                                       
 - Failed to import key.                                                                                                                       

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Repositório principal' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Repositório principal de atualização' metadata ..................................................................[error]
Repository 'Repositório principal de atualização' is invalid.
[repo-update|http://download.opensuse.org/update/leap/15.2/oss] Valid metadata not found at specified URL                                      
History:                                                                                                                                       
 - Failed to import key.                                                                                                                       

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Repositório principal de atualização' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Update Repository (Non-Oss)' metadata ...........................................................................[error]
Repository 'Update Repository (Non-Oss)' is invalid.
[repo-update-non-oss|http://download.opensuse.org/update/leap/15.2/non-oss/] Valid metadata not found at specified URL                         
History:                                                                                                                                       
 - Failed to import key.                                                                                                                       

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Update Repository (Non-Oss)' because of the above error.
Could not refresh the repositories because of errors.

Gosh, will I end up breaking this system for good while trying to fix it? Damn!

Please, does anybody has any suggestions? :frowning:

@johannesrs pick a mirror close to your locale from this list that has 15.2;

openSUSE Download Mirrors - Overview

For example from the mirror list for cmake full 2.1 I see;
https://download.opensuse.org/update/leap/15.2/oss/x86_64/cmake3-full-3.17.0-lp152.2.1.x86_64.rpm.mirrorlist

Change your repos to https not http

Plaese always show your repo list inclusing the URLs. E.g.

zypper lr -d

Now we have nothing then your local names and aliases and do not know where they point to.

Hi @malcolmlewis and @hcvv

Ok, done as requested, repositories back and properly informed to the forum (sorry).

# zypper refresh --force
Forcing raw metadata refresh
Retrieving repository 'Non-OSS Repository' metadata ..............................[done]
Forcing building of repository cache
Building repository 'Non-OSS Repository' cache ...................................[done]
Forcing raw metadata refresh
Retrieving repository 'Repositório principal' metadata ...........................[done]
Forcing building of repository cache
Building repository 'Repositório principal' cache ................................[done]
Forcing raw metadata refresh
Retrieving repository 'Repositório principal de atualização' metadata ............[done]
Forcing building of repository cache
Building repository 'Repositório principal de atualização' cache .................[done]
Forcing raw metadata refresh
Retrieving repository 'Update Repository (Non-Oss)' metadata .....................[done]
Forcing building of repository cache
Building repository 'Update Repository (Non-Oss)' cache ..........................[done]
All repositories have been refreshed.
# zypper lr -d
#  | Alias                                 | Name                                 | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                               | Service
---+---------------------------------------+--------------------------------------+---------+-----------+---------+----------+--------+-----------------------------------------------------------------------------------+--------
 1 | 15.2                                  | nVidia                               | No      | ----      | ----    |   99     | NONE   | https://download.nvidia.com/opensuse/leap/15.2                                    | 
 2 | cuda-opensuse15-x86_64                | cuda-opensuse15-x86_64               | No      | ----      | ----    |   99     | NONE   | https://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64        | 
 3 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository                   | No      | ----      | ----    |   99     | NONE   | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/                | 
 4 | oneAPI                                | oneAPI                               | No      | ----      | ----    |   99     | NONE   | https://yum.repos.intel.com/oneapi                                                | 
 5 | openSUSE-Leap-15.2-1                  | openSUSE-Leap-15.2-1                 | No      | ----      | ----    |   99     | NONE   | hd:/?device=/dev/disk/by-id/usb-SanDisk_Cruzer_Fit_4C530001170306103540-0:0-part2 | 
 6 | repo-debug                            | Debug Repository                     | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/               | 
 7 | repo-debug-non-oss                    | Debug Repository (Non-OSS)           | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/           | 
 8 | repo-debug-update                     | Update Repository (Debug)            | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/oss/                          | 
 9 | repo-debug-update-non-oss             | Update Repository (Debug, Non-OSS)   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                      | 
10 | repo-non-oss                          | Non-OSS Repository                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/non-oss/               | 
11 | repo-oss                              | Repositório principal                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/oss/                   | 
12 | repo-source                           | Source Repository                    | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/              | 
13 | repo-source-non-oss                   | Source Repository (Non-OSS)          | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/          | 
14 | repo-update                           | Repositório principal de atualização | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://linorg.usp.br/opensuse/update/leap/15.2/oss                               | 
15 | repo-update-non-oss                   | Update Repository (Non-Oss)          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://linorg.usp.br/opensuse/update/leap/15.2/non-oss/

However installations still fails:

# zypper in cmake
Loading repository data...
Warning: Repository 'Repositório principal de atualização' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Resolving package dependencies...

The following 3 NEW packages are going to be installed:
  cmake cmake-full cmake-man

3 new packages to install.
Overall download size: 6.4 MiB. Already cached: 0 B. After the operation, additional 31.4 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving package cmake-full-3.17.0-lp152.1.2.x86_64                                                     (1/3),   5.7 MiB ( 30.9 MiB unpacked)
System exception 'System error on /var/tmp/AP_0xL9g5Qc/x86_64' on medium 'https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/oss/x86_64/cmake-full-3.17.0-lp152.1.2.x86_64.rpm'.
Abort, retry, ignore? [a/r/i/...? shows all options] (a): a
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.

Tried on both zypper and on yast (I had to manually select the update repository to see the newer version, but even then its installation fails)…

Just to make sure it is not only cmake, tested again the flex:

# zypper se flex
Problem retrieving files from 'Non-OSS Repository'.
System exception 'System error on /var/tmp/AP_0x1jObj4/media.1' on medium 'https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/non-oss/media.1/media'.                                                                                                                                 
Please see the above error message for a hint.
Warning: Skipping repository 'Non-OSS Repository' because of the above error.
Problem retrieving files from 'Repositório principal de atualização'.
Bad media attach point: https://linorg.usp.br/opensuse/update/leap/15.2/oss                                                                    
History:                                                                                                                                       
 - Create attach point: Can't find a writable directory to create an attach point                                                              

Please see the above error message for a hint.
Warning: Skipping repository 'Repositório principal de atualização' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...

S | Name                          | Summary                                                                       | Type
--+-------------------------------+-------------------------------------------------------------------------------+--------
  | flex                          | Fast Lexical Analyzer Generator                                               | package
  | flexdock                      | Swing windowing and docking framework                                         | package
i | gdmflexiserver                | Compatibility Wrapper for Display Managers                                    | package
  | jflex                         | Lexical Analyzer Generator for Java                                           | package
  | jflex-bootstrap               | Lexical Analyzer Generator for Java                                           | package
  | jflex-doc                     | Documentation and examples for jflex                                          | package
  | monitoring-plugins-flexlm     | Check flexlm license managers                                                 | package
  | pcsc-reflex60                 | PCSC driver for Schlumberger Reflex 60 smartcard readers                      | package
  | perl-DateTime-Format-Flexible | DateTime::Format::Flexible - Flexibly parse strings and turn them into D[cut] | package
  | python2-flexmock              | Testing library for creating mocks, stubs and fakes                           | package
  | python3-flexmock              | Testing library for creating mocks, stubs and fakes                           | package
  | python3-flexx                 | Python toolkit for creating graphical user interfaces                         | package
  | rook-rookflex                 | Rook FlexVolume driver                                                        | package
# zypper in flex
Problem retrieving files from 'Non-OSS Repository'.
Bad media attach point: https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/non-oss/
History:
 - Create attach point: Can't find a writable directory to create an attach point

Please see the above error message for a hint.
Warning: Skipping repository 'Non-OSS Repository' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Warning: Repository 'Repositório principal de atualização' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  flex

1 new package to install.
Overall download size: 366.6 KiB. Already cached: 0 B. After the operation, additional 1.3 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving package flex-2.6.4-lp152.4.105.x86_64                                                          (1/1), 366.6 KiB (  1.3 MiB unpacked)
Bad media attach point: https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/oss/
History:
 - Create attach point: Can't find a writable directory to create an attach point

Abort, retry, ignore? [a/r/i/...? shows all options] (a):

Those errors are not making any sense to me… :frowning:

Any clues? :frowning:

Is it possible that you have a failing hard drive?

Hopefully the following could be useful to know:

/var/tmp # cat /usr/local/bin/zypse
#!/bin/sh
zypper --no-refresh se -s $*  | grep -Ev 'debug|devel|srcp|openSUSE-20' | grep -E 'x86|noarch'| sort
# zypse cmake-fu
  | cmake-full | package | 3.17.0-lp152.1.2 | x86_64 | OSS
/etc/zypp/repos.d # cd /var/tmp
/var/tmp # ls -ld ../tmp
drwxrwxrwt 4 root root 1024 Apr 15 04:45 ../tmp
/var/tmp # ls -l
total 2
drwx------ 4 root root 1024 Feb  2  2022 kdecache-root
drwx------ 3 root root 1024 Apr 15 04:21 systemd-private-2c54f0df253144989695a1e4e2aa76eb-ntpd.service-BjeFcK
/var/tmp # zypper -v in -D cmake-full
Verbosity: 2
Non-option program arguments: 'cmake-full'
Initializing Target
Checking whether to refresh metadata for NonOSS
Checking whether to refresh metadata for OSS
Checking whether to refresh metadata for Update
Checking whether to refresh metadata for UpdateNonOSS
Loading repository data...
Warning: Repository 'Update' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'UpdateNonOSS' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Force resolution: No
Selecting 'cmake-full-3.17.0-lp152.1.2.x86_64' from repository 'OSS' for installation.
Resolving package dependencies...
Force resolution: No

The following 3 NEW packages are going to be installed:
  cmake-full  3.17.0-lp152.1.2
  librhash0   1.3.5-lp152.3.5
  make        4.2.1-lp152.8.110

3 new packages to install.
Overall download size: 6.1 MiB. Already cached: 0 B. After the operation, additional 31.4 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
committing (dry run)

Checking for file conflicts: (3 skipped) ..............................................................................................................................................[done]
Warning: 3 packages had to be excluded from file conflicts check because they are not yet downloaded.

    Note: Checking for file conflicts requires not installed packages to be downloaded in advance in
    order to access their file lists. See option '--download-in-advance / --dry-run --download-only'
    in the zypper manual page for details.

CommitResult  (total 3, done 0, error 0, skipped 3, updateMessages 0)
/var/tmp # zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias        | Enabled | GPG Check | URI
--+--------------+---------+-----------+---------------------------------------------------------------------
1 | FCL          | Yes     | ( p) Yes  | http://silk.apana.org.au/rpm-opensuse15-unstable-dev
2 | NonOSS       | Yes     | (r ) Yes  | http://ftp.gwdg.de/pub/opensuse/distribution/leap/15.2/repo/non-oss/
3 | OSS          | Yes     | (r ) Yes  | http://ftp.gwdg.de/pub/opensuse/distribution/leap/15.2/repo/oss/
4 | Update       | Yes     | (r ) Yes  | http://ftp.gwdg.de/pub/opensuse/update/leap/15.2/oss/
5 | UpdateNonOSS | Yes     | (r ) Yes  | http://ftp.gwdg.de/pub/opensuse/update/leap/15.2/non-oss/

I ran the install successfully by repeating without -D.

i see repo/s associated with opensuse pointing to ‘http’ when they should point to ‘https’, has that been fixed?

if you try to open the repos with ‘http’ the response is 404/blackhole

Thanks for all responses, and sorry for not replying yesterday.

@nrickert: I do not think it might be a disk failure because the drive is less than 2 years old still. On the other hand, I’ve never quite understood the “smarttools”, so could you please provide me with a command that might give the answer easily?

@two_dogs: I fixed it for certain using the yast2 interface last Friday. The zypper output follows:

> zypper lr -d
#  | Alias                                 | Name                                 | Enabled    | GPG Check       | Refresh   | Priority   | Type   | URI                                                                               | Service
---+---------------------------------------+--------------------------------------+------------+-----------------+-----------+------------+--------+-----------------------------------------------------------------------------------+--------
 1 | 15.2                                  | nVidia                               | Não        | ----            | ----      |   99       | NONE   | https://download.nvidia.com/opensuse/leap/15.2                                    |
 2 | cuda-opensuse15-x86_64                | cuda-opensuse15-x86_64               | Não        | ----            | ----      |   99       | NONE   | https://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64        |
 3 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository                   | Não        | ----            | ----      |   99       | NONE   | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/                |
 4 | oneAPI                                | oneAPI                               | Não        | ----            | ----      |   99       | NONE   | https://yum.repos.intel.com/oneapi                                                |
 5 | openSUSE-Leap-15.2-1                  | openSUSE-Leap-15.2-1                 | Não        | ----            | ----      |   99       | NONE   | hd:/?device=/dev/disk/by-id/usb-SanDisk_Cruzer_Fit_4C530001170306103540-0:0-part2 |
 6 | repo-debug                            | Debug Repository                     | Não        | ----            | ----      |   99       | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/               |
 7 | repo-debug-non-oss                    | Debug Repository (Non-OSS)           | Não        | ----            | ----      |   99       | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/           |
 8 | repo-debug-update                     | Update Repository (Debug)            | Não        | ----            | ----      |   99       | NONE   | http://download.opensuse.org/debug/update/leap/15.2/oss/                          |
 9 | repo-debug-update-non-oss             | Update Repository (Debug, Non-OSS)   | Não        | ----            | ----      |   99       | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                      |
10 | repo-non-oss                          | Non-OSS Repository                   | Sim        | (r ) Sim        | Sim       |   99       | rpm-md | https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/non-oss/               |
11 | repo-oss                              | Repositório principal                | Sim        | (r ) Sim        | Sim       |   99       | rpm-md | https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/oss/                   |
12 | repo-source                           | Source Repository                    | Não        | ----            | ----      |   99       | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/              |
13 | repo-source-non-oss                   | Source Repository (Non-OSS)          | Não        | ----            | ----      |   99       | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/          |
14 | repo-update                           | Repositório principal de atualização | Sim        | (r ) Sim        | Sim       |   99       | rpm-md | https://linorg.usp.br/opensuse/update/leap/15.2/oss                               |
15 | repo-update-non-oss                   | Update Repository (Non-Oss)          | Sim        | (r ) Sim        | Sim       |   99       | rpm-md | https://linorg.usp.br/opensuse/update/leap/15.2/non-oss/                          |

Please note that only four repositories are enabled, and those four are from an official Brazilian mirror with https addresses (and not http).

@mrmazda: Thanks for the suggestion, but I got no luck (however it might be giving enough additional information now?)

> sudo zypper -v in -D cmake-full
sudo: unable to open /var/lib/sudo/ts/johannes: Structure needs cleaning
[sudo] password for root:
Sorry, try again.
[sudo] password for root:
Verbosity: 2
Non-option program arguments: 'cmake-full'
Initializing Target
Checking whether to refresh metadata for Non-OSS Repository
Problem retrieving files from 'Non-OSS Repository'.
Bad media attach point: https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/non-oss/
History:
 - Create attach point: Can't find a writable directory to create an attach point

Please see the above error message for a hint.
Warning: Skipping repository 'Non-OSS Repository' because of the above error.
Checking whether to refresh metadata for Repositório principal
Retrieving: repomd.xml ..................................................................................................................................................................................................................................................[done]
Retrieving: media .......................................................................................................................................................................................................................................................[done]
Checking whether to refresh metadata for Repositório principal de atualização
Problem retrieving files from 'Repositório principal de atualização'.
Bad media attach point: https://linorg.usp.br/opensuse/update/leap/15.2/oss
History:
 - Create attach point: Can't find a writable directory to create an attach point

Please see the above error message for a hint.
Warning: Skipping repository 'Repositório principal de atualização' because of the above error.
Checking whether to refresh metadata for Update Repository (Non-Oss)
Retrieving: repomd.xml ..................................................................................................................................................................................................................................................[done]
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Force resolution: No
Selecting 'cmake-full-3.17.0-lp152.1.2.x86_64' from repository 'Repositório principal' for installation.
Resolving package dependencies...
Force resolution: No

The following NEW package is going to be installed:
  cmake-full  3.17.0-lp152.1.2

1 new package to install.
Overall download size: 5.7 MiB. Already cached: 0 B. After the operation, additional 30.9 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):
committing (dry run)

Checking for file conflicts: (1 skipped) ................................................................................................................................................................................................................................[done]
Warning: 1 package had to be excluded from file conflicts check because it is not yet download.

    Note: Checking for file conflicts requires not installed packages to be downloaded in advance in
    order to access their file lists. See option '--download-in-advance / --dry-run --download-only'
    in the zypper manual page for details.

CommitResult  (total 1, done 0, error 0, skipped 1, updateMessages 0)

> sudo zypper -v in cmake-full
sudo: unable to open /var/lib/sudo/ts/johannes: Structure needs cleaning
[sudo] password for root:
Verbosity: 2
Non-option program arguments: 'cmake-full'
Initializing Target
Checking whether to refresh metadata for Non-OSS Repository
Problem retrieving files from 'Non-OSS Repository'.
Bad media attach point: https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/non-oss/
History:
 - Create attach point: Can't find a writable directory to create an attach point

Please see the above error message for a hint.
Warning: Skipping repository 'Non-OSS Repository' because of the above error.
Checking whether to refresh metadata for Repositório principal
Checking whether to refresh metadata for Repositório principal de atualização
Retrieving: repomd.xml ..................................................................................................................................................................................................................................................[done]
Checking whether to refresh metadata for Update Repository (Non-Oss)
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Warning: Repository 'Repositório principal de atualização' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Force resolution: No
Selecting 'cmake-full-3.17.0-lp152.1.2.x86_64' from repository 'Repositório principal' for installation.
Resolving package dependencies...
Force resolution: No

The following NEW package is going to be installed:
  cmake-full  3.17.0-lp152.1.2

1 new package to install.
Overall download size: 5.7 MiB. Already cached: 0 B. After the operation, additional 30.9 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):
committing
Retrieving package cmake-full-3.17.0-lp152.1.2.x86_64                                                                                                                                                                                     (1/1),   5.7 MiB ( 30.9 MiB unpacked)
Bad media attach point: https://linorg.usp.br/opensuse/distribution/leap/15.2/repo/oss/
History:
 - Create attach point: Can't find a writable directory to create an attach point

Abort, retry, ignore? [a/r/i/...? shows all options] (a): r
Retrieving: cmake-full-3.17.0-lp152.1.2.x86_64.rpm ..........................................................................................................................................................................................................[done (3.9 MiB/s)]

Checking for file conflicts: ............................................................................................................................................................................................................................................[done]
(1/1) Installing: cmake-full-3.17.0-lp152.1.2.x86_64 ...................................................................................................................................................................................................................[error]
Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;643df115: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Abort, retry, ignore? [a/r/i] (a): r
(1/1) Installing: cmake-full-3.17.0-lp152.1.2.x86_64 ...................................................................................................................................................................................................................[error]
Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;643df11c: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Abort, retry, ignore? [a/r/i] (a): r
(1/1) Installing: cmake-full-3.17.0-lp152.1.2.x86_64 ...................................................................................................................................................................................................................[error]
Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;643df11d: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Abort, retry, ignore? [a/r/i] (a): r
(1/1) Installing: cmake-full-3.17.0-lp152.1.2.x86_64 ...................................................................................................................................................................................................................[error]
Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;643df11d: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Abort, retry, ignore? [a/r/i] (a): r
(1/1) Installing: cmake-full-3.17.0-lp152.1.2.x86_64 ...................................................................................................................................................................................................................[error]
Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;643df124: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Abort, retry, ignore? [a/r/i] (a): r
(1/1) Installing: cmake-full-3.17.0-lp152.1.2.x86_64 ...................................................................................................................................................................................................................[error]
Installation of cmake-full-3.17.0-lp152.1.2.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/bin/ccmake;643df126: cpio: open failed - No such file or directory
error: cmake-full-3.17.0-lp152.1.2.x86_64: install failed

Abort, retry, ignore? [a/r/i] (a): a
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.

Does anybody has any clues on what is going on on this machine? :frowning: I’m feeling I’m running in circles around the problem and not seeing it… :frowning:

Create attach point: Can't find a writable directory to create an attach point

Maybe:

Hi @Sauerland.

Tried before. and partially worked: Repos seemed to work, but it did not install anything… :frowning:

Now not even that is working at all… :frowning: