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

unable to install (Ubuntu 20.04) [you have held broken packages] #189

Open
daniel-schwarzenbach opened this issue Sep 30, 2022 · 0 comments

Comments

@daniel-schwarzenbach
Copy link

I was trying to install Tev(https://github.com/Tom94/tev) on my Laptop but when I ran the command

sudo apt-get install cmake xorg-dev libglu1-mesa-dev zlib1g-dev zenity

I got an weird error

Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version (3.16.3-1ubuntu1).
libglu1-mesa-dev is already the newest version (9.0.1-1build1).
libglu1-mesa-dev set to manually installed.
zenity is already the newest version (3.32.0-5).
zenity set to manually installed.
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu1.3).
zlib1g-dev set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
xorg-dev : Depends: xserver-xorg-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

then I updated and upgraded apt which did nothing.

then I tried

dpkg --get-selections | grep hold

and

sudo apt-get autoremove

which also did nothing.
Then I tryed to install everything manually.

sudo apt-get -y install xserver-xorg-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
xserver-xorg-dev : Depends: mesa-common-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt install mesa-common-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mesa-common-dev : Depends: libdrm-dev (>= 2.4.95) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt install libdrm-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libdrm-dev : Depends: libdrm2 (= 2.4.107-8ubuntu1~ 20.04.2) but 2.4.111+git2206130500.f7828d~ oibaf~ f is to be installed
Depends: libdrm-intel1 (= 2.4.107-8ubuntu1~ 20.04.2) but 2.4.111+git2206130500.f7828d~ oibaf~ f is to be installed
Depends: libdrm-radeon1 (= 2.4.107-8ubuntu1~ 20.04.2) but 2.4.111+git2206130500.f7828d~ oibaf~ f is to be installed
Depends: libdrm-nouveau2 (= 2.4.107-8ubuntu1~ 20.04.2) but 2.4.111+git2206130500.f7828d~ oibaf~ f is to be installed
Depends: libdrm-amdgpu1 (= 2.4.107-8ubuntu1~ 20.04.2) but 2.4.111+git2206130500.f7828d~ oibaf~ f is to be installed
E: Unable to correct problems, you have held broken packages.

I then also installed all libdrm... but it didn't change a thing.

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

1 participant