adameye
May 7th, 2007, 01:49 PM
I just downloaded Ubuntu 7.04 and installed it
however, I can not use gcc,cc,g++ to compile the C program which can run in Ubuntu 6.10
sudo aptitude update
Get:1 http://archive.ubuntu.com edgy Release.gpg [191B]
Get:2 http://archive.ubuntu.com edgy-updates Release.gpg [191B]
Get:3 http://archive.ubuntu.com edgy-backports Release.gpg [191B]
Get:4 http://archive.ubuntu.com edgy Release [34.7kB]
Get:5 http://archive.ubuntu.com edgy-updates Release [38.4kB]
Get:6 http://archive.ubuntu.com edgy-backports Release [44.6kB]
Get:7 http://archive.ubuntu.com edgy/main Packages [940kB]
Get:8 http://security.ubuntu.com edgy-security Release.gpg [191B]
Hit http://security.ubuntu.com edgy-security Release
Hit http://security.ubuntu.com edgy-security/main Packages
Hit http://security.ubuntu.com edgy-security/restricted Packages
Hit http://security.ubuntu.com edgy-security/main Sources
Hit http://security.ubuntu.com edgy-security/restricted Sources
Hit http://security.ubuntu.com edgy-security/universe Packages
Hit http://security.ubuntu.com edgy-security/universe Sources
Get:9 http://archive.ubuntu.com edgy/restricted Packages [5974B]
Get:10 http://archive.ubuntu.com edgy/main Sources [274kB]
Get:11 http://archive.ubuntu.com edgy/restricted Sources [1436B]
Get:12 http://archive.ubuntu.com edgy/universe Packages [3559kB]
Get:13 http://archive.ubuntu.com edgy/universe Sources [1068kB]
Get:14 http://archive.ubuntu.com edgy-updates/main Packages [81.1kB]
Get:15 http://archive.ubuntu.com edgy-updates/restricted Packages [14B]
Get:16 http://archive.ubuntu.com edgy-updates/main Sources [24.2kB]
Get:17 http://archive.ubuntu.com edgy-updates/restricted Sources [14B]
Get:18 http://archive.ubuntu.com edgy-backports/main Packages [17.8kB]
Get:19 http://archive.ubuntu.com edgy-backports/restricted Packages [14B]
Get:20 http://archive.ubuntu.com edgy-backports/universe Packages [40.1kB]
Get:21 http://archive.ubuntu.com edgy-backports/multiverse Packages [6087B]
Get:22 http://archive.ubuntu.com edgy-backports/main Sources [5571B]
Get:23 http://archive.ubuntu.com edgy-backports/restricted Sources [14B]
Get:24 http://archive.ubuntu.com edgy-backports/universe Sources [14.4kB]
Get:25 http://archive.ubuntu.com edgy-backports/multiverse Sources [2382B]
Fetched 6158kB in 2m3s (49.8kB/s)
Reading package lists... Done
sudo aptitude install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are BROKEN:
g++-4.1 libc6-dev libstdc++6-4.1-dev
The following NEW packages will be automatically installed:
dpkg-dev g++ linux-libc-dev
The following NEW packages will be installed:
build-essential dpkg-dev g++ linux-libc-dev
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 7932kB of archives. After unpacking 30.4MB will be used.
The following packages have unmet dependencies:
g++-4.1: Depends: gcc-4.1-base (= 4.1.1-13ubuntu5) but 4.1.2-0ubuntu4 is installed.
Depends: gcc-4.1 (= 4.1.1-13ubuntu5) but 4.1.2-0ubuntu4 is installed.
libstdc++6-4.1-dev: Depends: gcc-4.1-base (= 4.1.1-13ubuntu5) but 4.1.2-0ubuntu4 is installed.
libc6-dev: Depends: libc6 (= 2.4-1ubuntu12.3) but 2.5-0ubuntu14 is installed.
Resolving dependencies...
open: 9; closed: 5; defer: 0; conflict/break: 1 .The following actions will resolve these dependencies:
Keep the following packages at their current version:
build-essential [Not Installed]
g++ [Not Installed]
g++-4.1 [Not Installed]
libc6-dev [Not Installed]
libstdc++6-4.1-dev [Not Installed]
Score is -9965
Accept this solution? [Y/n/q/?]
however, I can not use gcc,cc,g++ to compile the C program which can run in Ubuntu 6.10
sudo aptitude update
Get:1 http://archive.ubuntu.com edgy Release.gpg [191B]
Get:2 http://archive.ubuntu.com edgy-updates Release.gpg [191B]
Get:3 http://archive.ubuntu.com edgy-backports Release.gpg [191B]
Get:4 http://archive.ubuntu.com edgy Release [34.7kB]
Get:5 http://archive.ubuntu.com edgy-updates Release [38.4kB]
Get:6 http://archive.ubuntu.com edgy-backports Release [44.6kB]
Get:7 http://archive.ubuntu.com edgy/main Packages [940kB]
Get:8 http://security.ubuntu.com edgy-security Release.gpg [191B]
Hit http://security.ubuntu.com edgy-security Release
Hit http://security.ubuntu.com edgy-security/main Packages
Hit http://security.ubuntu.com edgy-security/restricted Packages
Hit http://security.ubuntu.com edgy-security/main Sources
Hit http://security.ubuntu.com edgy-security/restricted Sources
Hit http://security.ubuntu.com edgy-security/universe Packages
Hit http://security.ubuntu.com edgy-security/universe Sources
Get:9 http://archive.ubuntu.com edgy/restricted Packages [5974B]
Get:10 http://archive.ubuntu.com edgy/main Sources [274kB]
Get:11 http://archive.ubuntu.com edgy/restricted Sources [1436B]
Get:12 http://archive.ubuntu.com edgy/universe Packages [3559kB]
Get:13 http://archive.ubuntu.com edgy/universe Sources [1068kB]
Get:14 http://archive.ubuntu.com edgy-updates/main Packages [81.1kB]
Get:15 http://archive.ubuntu.com edgy-updates/restricted Packages [14B]
Get:16 http://archive.ubuntu.com edgy-updates/main Sources [24.2kB]
Get:17 http://archive.ubuntu.com edgy-updates/restricted Sources [14B]
Get:18 http://archive.ubuntu.com edgy-backports/main Packages [17.8kB]
Get:19 http://archive.ubuntu.com edgy-backports/restricted Packages [14B]
Get:20 http://archive.ubuntu.com edgy-backports/universe Packages [40.1kB]
Get:21 http://archive.ubuntu.com edgy-backports/multiverse Packages [6087B]
Get:22 http://archive.ubuntu.com edgy-backports/main Sources [5571B]
Get:23 http://archive.ubuntu.com edgy-backports/restricted Sources [14B]
Get:24 http://archive.ubuntu.com edgy-backports/universe Sources [14.4kB]
Get:25 http://archive.ubuntu.com edgy-backports/multiverse Sources [2382B]
Fetched 6158kB in 2m3s (49.8kB/s)
Reading package lists... Done
sudo aptitude install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are BROKEN:
g++-4.1 libc6-dev libstdc++6-4.1-dev
The following NEW packages will be automatically installed:
dpkg-dev g++ linux-libc-dev
The following NEW packages will be installed:
build-essential dpkg-dev g++ linux-libc-dev
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 7932kB of archives. After unpacking 30.4MB will be used.
The following packages have unmet dependencies:
g++-4.1: Depends: gcc-4.1-base (= 4.1.1-13ubuntu5) but 4.1.2-0ubuntu4 is installed.
Depends: gcc-4.1 (= 4.1.1-13ubuntu5) but 4.1.2-0ubuntu4 is installed.
libstdc++6-4.1-dev: Depends: gcc-4.1-base (= 4.1.1-13ubuntu5) but 4.1.2-0ubuntu4 is installed.
libc6-dev: Depends: libc6 (= 2.4-1ubuntu12.3) but 2.5-0ubuntu14 is installed.
Resolving dependencies...
open: 9; closed: 5; defer: 0; conflict/break: 1 .The following actions will resolve these dependencies:
Keep the following packages at their current version:
build-essential [Not Installed]
g++ [Not Installed]
g++-4.1 [Not Installed]
libc6-dev [Not Installed]
libstdc++6-4.1-dev [Not Installed]
Score is -9965
Accept this solution? [Y/n/q/?]