root@xxx:~# aptitude show gcc Package: gcc New: yes State: installed Automatically installed: no Version: 4:5.2.1-3ubuntu1 Priority: optional Section: devel Maintainer: Ubuntu Developers &lt;ubuntu-devel-discuss@lists.ubuntu.com&gt; Architecture: i386 Uncompressed Size: 45.1 k Depends: cpp (&gt;= 4:5.2.1-3ubuntu1), gcc-5 (&gt;= 5.2.1-12~) Recommends: libc6-dev | libc-dev Suggests: gcc-multilib, make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb, gcc-doc Conflicts: gcc-doc (&lt; 1:2.95.3) Provides: c-compiler Description: GNU C compiler   There is an option for 'apt-get' which is --install-suggest, and there are also an option -r (--with-recommends) for aptitude, Are those two the some thing?
124203
I've checked the man/info page, but there is no reference to some aspects of the output fomat of apt-cache depends     The man/info page tried to be helpful (in an obtuse manner); quote: "For the specific meaning of the remainder of the output it is best to consult the apt source code"    Now in fairness to the info page, that quote was in regards to the 'showpkg' option which it had reasonably explained, but my option had no such explanation...   I understand that Linux info comes from many sources (not just man/info pages), and I don't particularly want to rummage through the source (altough somtimes I do), so here is an example of what I'd like to know the meaning of.    # I can assume what these mean, but...  #  What does | mean? (probably means 'or'???) #  What does &lt;pkg&gt; and the following indentations  mean?  #  At the end, the interaction(?) of Suggest and Recommends puzzles me.  $ apt-cache depends solr-common solr-common       Depends: debconf  |Depends: openjdk-6-jre-headless  |Depends: &lt;java5-runtime-headless&gt;     default-jre-headless     gcj-4.4-jre-headless     gcj-jre-headless     gij-4.3    openjdk-6-jre-headless   Depends: &lt;java6-runtime-headless&gt;     default-jre-headless     openjdk-6-jre-headless   Depends: libcommons-codec-java   Depends: libcommons-csv-java   Depends: libcommons-fileupload-java   Depends: libcommons-httpclient-java   Depends: libcommons-io-java   Depends: libjaxp1.3-java   Depends: libjetty-java   Depends: liblucene2-java   Depends: libservlet2.5-java   Depends: libslf4j-java   Depends: libxml-commons-external-java   Suggests: libmysql-java  |Recommends: solr-tomcat   Recommends: solr-jetty
60745
I have four build servers that were all setup the same originally.  We've been using them to cross-compile C projects.  I'm trying to update them compile C++ natively as well.  Two of the servers I was able to install g++ on with no problem, the other two though give me 404 errors.  $ sudo apt-get install g++ Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed:   g++-7 libstdc++-7-dev Suggested packages:   g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg libstdc++-7-doc The following NEW packages will be installed:   g++ g++-7 libstdc++-7-dev 0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded. Need to get 9,043 kB of archives. After this operation, 40.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~18.04   404  Not Found [IP: 91.189.88.149 80] Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.4.0-1ubuntu1~18.04   404  Not Found [IP: 91.189.88.149 80] Err:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.2   404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libstdc++-7-dev_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/g++-7_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_7.4.0-1ubuntu2.2_amd64.deb  404  Not Found [IP: 91.189.88.149 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I have confirmed that all four report the same version info.  $ uname -a Linux build_server4 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.2 LTS Release:        18.04 Codename:       bionic
83161
Is there an IDE which can run on Ubuntu that supports C, C++ and Java? I installed , but it only supported Java. I installed the C/C++ package manually, but that package gives an error if I include iostream.   Is there any other IDE which can satisfy my needs? Or can I get NetBeans with all packages pre-installed in it?
58211
Whey I try to run the program Layout Editor (available on ) on Ubuntu 14.04.1 64-bit LTS I get the following output in the terminal:  $ layout layout: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by layout)   I tried the command strings on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 as following and here is the input and the output:  $ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 GLIBCXX_DEBUG_MESSAGE_LENGTH   How can I resolve this issue I somehow guess that it is related with GCC but cannot figure out how to fix the problem. Furthermore, I have tried a PPA as suggested on  and there is a similar question for an older version of Ubuntu at . However, after I ran sudo update I get numerous warnings and the list I obtained with the strings command did not have new entries after installing gcc 4.9, so I purged the PPA() with ppa-purge. Any help, suggestions on how to proceed are greatly appreciated.
36410
apt-get install linux-headers-`uname -r` Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-4.9.0-kali3-amd64 E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64' E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'
46663
I know the thread  However, there is no Linux anymore in the installation site .  Unsuccessful attempts   I do DriraWassim's proposal which does not add anything to apt-get and does not show the installed .deb package in the path/search  sudo apt-get install libxml2:i386  sudo apt-get update sudo apt-get upgrade  apt-cache search adobereader-enu   I download the newest .deb package  and run it.  I cannot find the application anywhere in the system. It is not in the path and not in Ubuntu's search. How can you start it?   System: Ubuntu 16.04, 64 bit Hardware: Macbook Air 2013-mid Linux kernel: 4.6
28257
On AWS Ubuntu Server, I wrote C++ Hello, World program:  #include &lt;iostream&gt; using namespace std;  int main(){         cout&lt;&lt;"Hello, World!"&lt;&lt;endl;         return 0; }   And compiled it:  ubuntu@ip-xxxxx:~/dev/c++$ g++ -c ./test.cc -o out ubuntu@ip-xxxxx:~/dev/c++$ chmod a+x out ubuntu@ip-xxxxx:~/dev/c++$ ./out -bash: ./out: cannot execute binary file: Exec format error ubuntu@ip-xxxxx:~/dev/c++$ file ./out ./out: ELF 64-bit LSB  relocatable, x86-64, version 1 (SYSV), not stripped ubuntu@ip-xxxxx:~/dev/c++$ uname -a Linux ip-xxxxx 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ubuntu@ip-xxxxx:~/dev/c++$ gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4   It seems that architecture x86-64 is the same each other. What is the problem here? Do I have to add more C++ flags?
103777
I am trying to install G++ compiler in Ubuntu 13.10. It told me I needed to install the build-essential package.  I have tried the below code  sudo apt-get update sudo apt-get install build-essential   It gives me this error:  Reading package lists... Done Building dependency tree  Reading state information... Done E: Couldn't find package build-essential
123209
I'm trying to write a basic program in C using gedit or sublime text (which I prefer), but no matter what I do when I try to compile or run, or even while writing, I have no option to use 'stdio.h' or any similar package. Even when I start typing #include &lt;st the only word completion sublime suggests is 'struct'.  I've read dozens of threads, but all managed to fix this by installing gcc, which I've tried to reinstall multiple times, with no luck.  This is the output from gcc -v:  Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3) `   This is the code:   #include &lt;stdio.h&gt;  int main(void) { printf("hello, world\n"); }   When I compile using gcc, I get nothing, no error at least. but when I try to run using just ./hello.c this is what I get.
118632
I want to be able to recreate specific packages by compiling the source code of the package. To compile the source code one has to run the configuration process, followed by the compilation process. I know how to do it, just not what specifics Ubuntu is supplying.  Packages could be Empathy, Banshee or specific libraries for that matter. I can compile them just fine using the (general) information provided at each project site. In a lot of cases I do, however, end up with a build which is just not quite the same as the original one. Slightly different menu options, some functionality functioning differently or not at all, etc.  Is there any source where the configuration and compilation options can be found which are used for the packages included in Ubuntu? Possible also Ubuntu or Debian specific patches.
39516
How do I get the source code for eglibc in a format that will allow stepping through the source with gdb?    I have tried using apt-get source libc6-dev and that works for getting the source code, but I think that since the pre-processor directives were not applied that the line numbers that gdb has does not match with the source I downloaded. This makes it less useful when trying to step through the source and look at how functions in libc are working.
71855
I use Ubuntu 12.04 64-bit, I did the following: sudo gedit /etc/apt/apt.conf and added  APT::Install-Recommends "false"; APT::Install-Suggests "false";    But it did not work. When I try to install a package, it still wants to install the suggested and recommended packages. How can I solve this?
8143
I tried to compile some C code to get object file from a shell prompt:  $cc a.c     But this gives me the following error:  /usr/ucb/cc:  language optional software package not installed   How can I compile C code?
6299
Let's say there are A, B and C package.  A and C were installed manually with apt-get install, and B is a dependency of A and was installed by apt automatically.  Is it possible to know that with some apt-* or dpkg command?
102858
Somehow my Ubuntu install can't find what I believe to be very common packages....  E: Unable to locate package php5-curl E: Unable to locate package php5-gd   I know this has something to do with my sources, however, I am not sure which source I need or which source these packages would be included in.  These are the commands I ran  sudo apt-get install php5-curl sudo apt-get install php5-gd   Here's the content of /etc/apt/sources.list:  # deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/  # deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution.  ## Major bug fix updates produced after the final release of the ## distribution.  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team.  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team.  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team.   ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu oneiric partner # deb-src http://archive.canonical.com/ubuntu oneiric partner  ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. # deb http://extras.ubuntu.com/ubuntu oneiric main # deb-src http://extras.ubuntu.com/ubuntu oneiric main  # deb http://repository.spotify.com stable non-free
80241
This question always bothers me! Last time for 4.9 I tried the commands mentioned in . The same trick doesn't work now:  sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-5.1 g++-5.1   results in...  E: Unable to locate package gcc-5.1 E: Couldn't find any package by regex 'gcc-5.1' E: Unable to locate package g++-5.1 E: Couldn't find any package by regex 'g++-5.1'   What is the correct command for directly installing the latest g++ in Ubuntu? Is there any magic command which works uniformly for all the updates of g++?  Update:  I found that the correct command to install it is:  sudo apt-get install g++-5   This works now! Though in the , the version is 5.1.
10773
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/_var_cuda-repo-8-0-local_Release N: Skipping acquire of configured file 'non-free/binary-arm64/Packages' as repository 'http://repository.spotify.com stable InRelease' doesn't support architecture 'arm64' E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.161 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   After I installed Jetpack for Jetson tx1, my ubuntu constantly tries to fetch arm updates. Is there a way to disable this?  EDIT:   $dpkg --print-architecture amd64  $dpkg --print-foreign-architectures i386 arm64   I see that arm64 is included in foreign architectures. How do I remove it?