cannot install 3.18 headers on ubuntu based distro
iluvtux
Status: Curious
Joined: 07 Oct 2014
Posts: 7
Reply Quote
Even though I have the package gcc-4.9-base on this install, the headers are looking for gcc-4.9, which isn't a valid package on ubuntu. Can you please update the deps to be more ubuntu friendly?
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1135
Reply Quote
iluvtux, what version of Ubuntu are you running? I have a laptop running Ubuntu Gnome 14.10 and the upgrade to 3.18 with gcc 4.9 worked without any manual intervention.

Here's my repository configuration:
:: Code ::
$ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
           deb-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
           deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
           deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
           deb http://us.archive.ubuntu.com/ubuntu/ utopic universe
           deb-src http://us.archive.ubuntu.com/ubuntu/ utopic universe
           deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
           deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
           deb http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
           deb-src http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
           deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
           deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
           deb http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
           deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu utopic-security main restricted
           deb-src http://security.ubuntu.com/ubuntu utopic-security main restricted
           deb http://security.ubuntu.com/ubuntu utopic-security universe
           deb-src http://security.ubuntu.com/ubuntu utopic-security universe
           deb http://security.ubuntu.com/ubuntu utopic-security multiverse
           deb-src http://security.ubuntu.com/ubuntu utopic-security multiverse
           deb http://extras.ubuntu.com/ubuntu utopic main
           deb-src http://extras.ubuntu.com/ubuntu utopic main
           Active apt sources in file: /etc/apt/sources.list.d/gnome3-team-ubuntu-gnome3-staging-utopic.list
           deb http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu utopic main
           Active apt sources in file: /etc/apt/sources.list.d/gnome3-team-ubuntu-gnome3-utopic.list
           deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu utopic main
           Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
           deb http://dl.google.com/linux/chrome/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/liquorix.list
           deb http://liquorix.net/debian sid main
           Active apt sources in file: /etc/apt/sources.list.d/xorg-edgers-ubuntu-ppa-utopic.list
           deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu utopic main


And installed packages that are related:
:: Code ::
$ dpkg -l | grep gcc-4.9
ii  gcc-4.9                                     4.9.1-16ubuntu6                                        amd64        GNU C compiler
ii  gcc-4.9-base:amd64                          4.9.1-16ubuntu6                                        amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-4.9-base:i386                           4.9.1-16ubuntu6                                        i386         GCC, the GNU Compiler Collection (base package)
ii  libgcc-4.9-dev:amd64                        4.9.1-16ubuntu6                                        amd64        GCC support library (development files)


Also note, the gcc-4.9 package in Ubuntu 14.10 depends on gcc-4.9-base:
:: Code ::
$ apt-cache show gcc-4.9
Package: gcc-4.9
Priority: optional
Section: devel
Installed-Size: 17925
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Architecture: amd64
Version: 4.9.1-16ubuntu6
Replaces: gccgo-4.9 (<< 4.9.1-16ubuntu6)
Provides: c-compiler
Depends: cpp-4.9 (= 4.9.1-16ubuntu6), gcc-4.9-base (= 4.9.1-16ubuntu6), binutils (>= 2.24.51.20141001), libgcc-4.9-dev (>= 4.9.1-16ubuntu6), libc6 (>= 2.14), libcloog-isl4 (>= 0.17), libgmp10 (>= 2:5.0.1~), libisl10 (>= 0.10), libmpc3, libmpfr4 (>= 3.1.2), zlib1g (>= 1:1.1.4)

Back to top
iluvtux
Status: Curious
Joined: 07 Oct 2014
Posts: 7
Reply Quote
I'm actually on Linux Mint. THis is what I get when I try to install GCC 4.9

:: Code ::

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gcc-4.9 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-4.9' has no installation candidate
violet@mintysurface ~/Desktop $ apt-cache show gcc-4.9
N: Can't select versions from package 'gcc-4.9' as it is purely virtual
N: No packages found

It's called gcc-4.9-base on this distro.

Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4127
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
Please answer the question he asked:

show: inxi -bxxxr

linux mint is hard to impossible to support, and you have to provide the complete system info requested to even see what mint you are using.

Despite what clem pretends, mint is NOT debian and it is NOT ubuntu.
Back to top
iluvtux
Status: Curious
Joined: 07 Oct 2014
Posts: 7
Reply Quote
Well, it was working up until the latest update, and I guess I've been mislead to think it's an ubuntu based distro. The output:
:: Code ::


Repos:     Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
           deb http://dl.google.com/linux/chrome/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/heroku.list
           deb http://toolbelt.heroku.com/ubuntu ./
           Active apt sources in file: /etc/apt/sources.list.d/kilian-f_lux-trusty.list
           deb http://ppa.launchpad.net/kilian/f.lux/ubuntu trusty main
           deb-src http://ppa.launchpad.net/kilian/f.lux/ubuntu trusty main
           Active apt sources in file: /etc/apt/sources.list.d/liquorix.list
           deb http://liquorix.net/debian sid main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com rebecca main upstream import #id:linuxmint_main
           deb http://extra.linuxmint.com rebecca main #id:linuxmint_extra
           deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ trusty partner
           Active apt sources in file: /etc/apt/sources.list.d/ravefinity-project-ppa-trusty.list
           deb http://ppa.launchpad.net/ravefinity-project/ppa/ubuntu trusty main
           deb-src http://ppa.launchpad.net/ravefinity-project/ppa/ubuntu trusty main
[/code]
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1135
Reply Quote
Looks like your version of Linux Mint depends on Ubuntu Trusty, or version 14.04. Ubuntu 14.04 doesn't have gcc-4.9 - you'll have to upgrade to Ubuntu 14.10. However, you'll need to wait for Mint to upgrade their packages and give you an upgrade path to 14.10.

Your other option is just to ditch mint all-together, but that's up to you.

This is the reason that h2 says Linux Mint is not Ubuntu. It bundles enough packages on top of Ubuntu that it actively prohibits you from upgrading safely until the developers of Mint prepare them all for the next version. At this point, Mint is no longer a thin respin (better defaults and convenience packages), but a brand new distribution (unique packages, hard dependencies to its distro base, and incompatible with base distribution upgrade path - requires its own).
Back to top
Display posts from previous:   

All times are GMT - 8 Hours