Zypper g++ 升级

请问怎么使用 zypper 升级 g++ 到 4.7 以上?

啥?13.2 的 gcc-c++ 默认就是 4.8… 对了 g++ 在我们这儿叫 gcc-c++

zypper update gcc-c++

Retrieving repository ‘update’ metadata [error]
Repository ‘update’ is invalid.
|] Valid metadata not found at specified URL(s)
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository ‘update’ because of the above error.
Loading repository data…
Reading installed packages…
Resolving package dependencies…

Problem: solvable libtsan0-4.8.3+r212056-2.2.4.x86_64 conflicts with libtsan0 provided by itself
Solution 1: do not install gcc-c+±4.8-7.1.2.x86_64
Solution 2: do not install gcc-c+±4.8-7.1.2.x86_64

I can’t update gcc-c++ , why ?

  1. 你的 update 源加的还是不对…

  2. 贴一下你的 sudo zypper se -s libtsan0 的输出。

sudo zypper se -s libtsan0

Retrieving repository ‘update’ metadata [error]
Repository ‘update’ is invalid.
|] Valid metadata not found at specified URL(s)
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository ‘update’ because of the above error.
Loading repository data…
Reading installed packages…

S | Name | Type | Version | Arch | Repository
–±---------------±--------±--------------------±-------±----------
| libtsan0 | package | 4.8.3+r212056-2.2.4 | x86_64 | oss
| libtsan0-gcc49 | package | 4.9.0+r211729-2.1.7 | x86_64 | oss

how to update g++ ??