trezor / trezor-core

:lock: Don't use this repo, use the new monorepo instead:
https://github.com/trezor/trezor-firmware
GNU General Public License v3.0
353 stars 204 forks source link

Ubuntu 18.04 unmet dependencies #555

Closed fexra closed 5 years ago

fexra commented 5 years ago

When following the build instructions for Ubuntu/Debian you are met with the following error:

The following packages have unmet dependencies:
 libsdl2-dev : Depends: libasound2-dev but it is not going to be installed
               Depends: libgl1-mesa-dev but it is not going to be installed
               Depends: libgles2-mesa-dev but it is not going to be installed
               Depends: libglu1-mesa-dev but it is not going to be installed
               Depends: libpulse-dev but it is not going to be installed
               Depends: libsdl2-2.0-0 (= 2.0.8+dfsg1-1ubuntu1) but 2.0.8+dfsg1-1ubuntu1.18.04.1 is to be installed
               Depends: libudev-dev but it is not going to be installed

The current way around this is to remove and downgrade the following dependencies using apitude or something similiar:

The following actions will resolve these dependencies:

      Remove the following packages:                                                       
1)      libgl1:i386 [1.0.0-2ubuntu2.2 (now)]                                               
2)      libgl1-mesa-glx:i386 [18.0.5-0ubuntu0~18.04.1 (now)]                               
3)      libgles1 [1.0.0-2ubuntu2.2 (now)]                                                  
4)      libglvnd0:i386 [1.0.0-2ubuntu2.2 (now)]                                            
5)      libglx0:i386 [1.0.0-2ubuntu2.2 (now)]                                              
6)      libudev1:i386 [237-3ubuntu10.3 (now)]                                              
7)      steam:i386 [1:1.0.0.54+repack-5ubuntu1 (now)]                                      
8)      steam-installer [1.0.0.54+repack-5ubuntu1 (now)]                                   

      Downgrade the following packages:                                                    
9)      libasound2 [1.1.3-5ubuntu0.1 (now) -> 1.1.3-5 (bionic)]                            
10)     libasound2-data [1.1.3-5ubuntu0.1 (now) -> 1.1.3-5 (bionic)]                       
11)     libegl1 [1.0.0-2ubuntu2.2 (now) -> 1.0.0-2ubuntu2 (bionic)]                        
12)     libgl1 [1.0.0-2ubuntu2.2 (now) -> 1.0.0-2ubuntu2 (bionic)]                         
13)     libgles2 [1.0.0-2ubuntu2.2 (now) -> 1.0.0-2ubuntu2 (bionic)]                       
14)     libglvnd-core-dev [1.0.0-2ubuntu2.2 (now) -> 1.0.0-2ubuntu2 (bionic)]              
15)     libglvnd-dev [1.0.0-2ubuntu2.2 (now) -> 1.0.0-2ubuntu2 (bionic)]                   
16)     libglvnd0 [1.0.0-2ubuntu2.2 (now) -> 1.0.0-2ubuntu2 (bionic)]                      
17)     libglx0 [1.0.0-2ubuntu2.2 (now) -> 1.0.0-2ubuntu2 (bionic)]                        
18)     libopengl0 [1.0.0-2ubuntu2.2 (now) -> 1.0.0-2ubuntu2 (bionic)]                     
19)     libpulse-mainloop-glib0 [1:11.1-1ubuntu7.1 (now) -> 1:11.1-1ubuntu7 (bionic)]      
20)     libpulse0 [1:11.1-1ubuntu7.1 (now) -> 1:11.1-1ubuntu7 (bionic)]                    
21)     libpulsedsp [1:11.1-1ubuntu7.1 (now) -> 1:11.1-1ubuntu7 (bionic)]                  
22)     libsdl2-2.0-0 [2.0.8+dfsg1-1ubuntu1.18.04.1 (now) -> 2.0.8+dfsg1-1ubuntu1 (bionic)]
23)     libudev1 [237-3ubuntu10.3 (now) -> 237-3ubuntu10 (bionic)]                         
24)     pulseaudio [1:11.1-1ubuntu7.1 (now) -> 1:11.1-1ubuntu7 (bionic)]                   
25)     pulseaudio-module-bluetooth [1:11.1-1ubuntu7.1 (now) -> 1:11.1-1ubuntu7 (bionic)]  
26)     pulseaudio-utils [1:11.1-1ubuntu7.1 (now) -> 1:11.1-1ubuntu7 (bionic)]             
27)     udev [237-3ubuntu10.3 (now) -> 237-3ubuntu10 (bionic)]                             
prusnak commented 5 years ago

This is problem of your configuration because you have Steam installed, which introduces 32bit libraries.