Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E: Unable to locate package clang-7 E: Unable to locate package clang++-7 E: Couldn't find any package by regex 'clang++-7' #589

Closed
marsggbo opened this issue Apr 12, 2019 · 9 comments

Comments

@marsggbo
Copy link

My VM is Debian system, and when I try to install clang-7 and clang++-7, it alerts as follows:

test@tputest:~$ sudo apt-get -y install clang-7 clang++-7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package clang-7
E: Unable to locate package clang++-7
E: Couldn't find any package by regex 'clang++-7'

How to solve this problem? Thanks!

@dlibenzi
Copy link
Collaborator

Which version of Debian?
Did you try an apt-get-update + apt-get-upgrade?

@marsggbo
Copy link
Author

marsggbo commented Apr 12, 2019

@dlibenzi thanks for your reply.

The Debian version is:
image

And I also have tried update, but it seems not work.
image

@dlibenzi
Copy link
Collaborator

Do you have this line in your /etc/apt/sources.conf?

deb http://deb.debian.org/debian/ testing main

@marsggbo
Copy link
Author

Do you have this line in your /etc/apt/sources.conf?

deb http://deb.debian.org/debian/ testing main

@dlibenzi Thanks so much. It works. Wanna to cry hhhh.

@dlibenzi
Copy link
Collaborator

We have to update our README, as clang-7 is not on Debian Stretch.

@albanie
Copy link

albanie commented Apr 14, 2019

@dlibenzi what is currently the recommended approach for Stretch?

@dlibenzi
Copy link
Collaborator

Add the following line to /etc/apt/sources.conf:

deb http://deb.debian.org/debian/ testing main

Then run apt-get update and install clang-7 like the REAME suggests.

@albanie
Copy link

albanie commented Apr 14, 2019

Thanks! This worked (except that the modified file was /etc/apt/sources.list, rather than /etc/apt/sources.conf). Just in case it's useful for others experimenting on a fresh gcloud VM, run apt-get update after changing the .list file (but not apt-get upgrade, which in my case introduced conflicts with the google cloud libraries).

@dlibenzi
Copy link
Collaborator

Thanks! Will update the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants