Bug 22492 - /var/lib/run/alternatives was missing ... why?
Summary: /var/lib/run/alternatives was missing ... why?
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Base system maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-30 22:50 CET by Morgan Leijström
Modified: 2018-01-31 13:51 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Morgan Leijström 2018-01-30 22:50:00 CET
( BTW this is on a system recently upgraded from mga6 to cauldron )

# urpmi gcc-c++
installerar gcc-c++-7.3.0-1.mga7.x86_64.rpm från /var/cache/urpmi/rpms                                                              
Förbereder...                    ##################################################################################################
      1/1: gcc-c++               ##################################################################################################
administrationskatalogen /var/lib/alternatives är ogiltig
administrationskatalogen /var/lib/alternatives är ogiltig
varning: %post(gcc-c++-7.3.0-1.mga7.x86_64)-skript misslyckades, slutstatus 2
ERROR: 'script' failed for gcc-c++-7.3.0-1.mga7.x86_64

And maybe that failed script is the reason qt-creator do not find g++ when i try to open a project that needs it? (QElectroTech)
Marja Van Waes 2018-01-31 11:20:29 CET

Assignee: bugsquad => basesystem
CC: (none) => marja11

Comment 1 Thomas Backlund 2018-01-31 11:56:46 CET
not a gcc bug.

you have a broken install somewhere if /var/lib/alternatives is missing...

is chkconfig installed ?

Source RPM: gcc-7.3.0-1.mga7.src.rpm => (none)
CC: (none) => tmb

Comment 2 Morgan Leijström 2018-01-31 13:29:31 CET
Yes chkconfig is installed

# ls -al /var/lib/alt*
lrwxrwxrwx 1 root root 16 okt 15 02:31 /var/lib/alternatives -> rpm/alternatives
Comment 3 Morgan Leijström 2018-01-31 13:50:24 CET
Oh! : the pointed  /var/lib/run/alternatives  is missing !

I now created it, and gcc-c++ installs OK and qt-creator finds it

But of course rest of content in alternatives is missing... whatever should be there...

Strange that that folder was gone - I can not now tell if it existed before upgrade from mga6  (i could but it is much work as i only have a full disk image of it)
Morgan Leijström 2018-01-31 13:51:10 CET

Summary: gcc-7.3.0-1 install script fails => /var/lib/run/alternatives was missing ... why?


Note You need to log in before you can comment on or make changes to this bug.