Dependency ordering algorithm of a compiler


Let’s say, hypothetically, I’m writing a Java compiler. And we assume that in my case a class can’t be fully compiled until all signatures of dependencies (imports and other used classes) are known. Because I don’t want to keep the source code and AST of all classes in memory at the same time, I’ll need an algorithm to manage those dependencies and process them all in the right order.

What would be a good algorithm for ordering all dependencies?
That:

  • is not recursive
  • does not keep all source code and/or ast nodes in memory
  • is linear in both space and time
  • can handle cyclical dependencies

Or maybe more general, how is this normally done?

My approach looks like the following:

abstract class Compiler {

    TypeSystem ts;


    Type compile(String className) {

        if (ts.containsType(className)) {
            return ts.getType(className);
        }

        // Create skeleton type for this class:
        Type type = ts.createType(className);

        // Parse the class file:
        Node ast = parse(className);

        // Create signature:
        for (Node attribute : ast.findAll("AttributeDeclaration")) {

            // Get the text value of the name of the attribute:
            String attributeName = attribute.find("Identifier").text();

            // Get the text value of the type of the attribute:
            String attributeTypeName = attribute.find("Type").text();

            // Call compile recursive!
            Type attributeType = compile(attributeTypeName);

            type.createAttribute(attributeName, attributeType);
        }

        return type;
    }

    abstract Node parse(String className); // This method can find the file by class name.
}                

For sake of simplicity, does this code only process attributes and simple structs.
Note that this algorithm is recursive!

PC-BSD PBI, what reasons made it to be scrapped?


What are the detailed specific technical/organizational reasons that the PC-BSD team faced that ultimately lead them to scrap PBI and return to ports?

Was because of the difficulties compiling and packing? Was because of problems with the hard links they created? Or because of the amount of work to collect dependencies and compile together?

I am curious just to know why the same team that create a software (say GNUCash), take the time and effort to provide a self-contained version for Windows while the *NIX is left as to the compiler/installer.

I am not asking about why ports and libraries are good (easy security upgrades,…). I also am not asking about preferences or opinions for packages vs Windows, just the technical reasons that led to scrap PBI. I am asking specifically why the route of PBI (0install, NixOS) is technically not feasible or broadly adopted.

Exam question about BCNF


I am trying to unravel the following question about BCNF from a past exam paper that is available online.

The question, which is on page 7 of the linked PDF, says:

Suppose that R(A,B,C,D) is a relation in BCNF and that 3 of the following 4 FDs hold in R:

(1) A->BCD (2) BC->A (3) CD->B (4) D->C

Then which is the only one that does not hold?

The given solution is (4) and the argument proceeds by showing that a contradiction follows from the other possibilities.

Here is one of the arguments as an example: suppose that (2), (3) and (4) all hold, but (1) does not. Then D is the only key for R, and so BC->A would be a BCNF violation, thus we have a contradiction.

But this argument seems incomplete to me – certainly if we assume (2), (3) and (4) hold, then D is a key, but why does it have to be the ONLY key?

Fully Specifying #includes


I’m very fastidious about code. When I remove functionality from a file I remove the cooresponding #includes. I’ve hit several errors where I would remove a #include from a header, and another file that #included the header I was editing depended on that #include.

Depending on the error given by the compiler it can waste a fair amount of my time determining which dependency I actually removed.

I’ve been told by a coworker, that the problem is that I’m cleaning up #includes when I should just leave them alone even if nothing in their contents is used. He claims that if we fully specified our includes top level files would be ridiculously bloated.

I’d like a convincing argument to sway him to fully specify the necessary #includes. Or perhaps I’m in the wrong in which case I’d like to hear an argument against me cleaning up #includes. Is there an argument convincing enough to sway one of us?

Installing HHVM on centos 6.5


So I have followed about 8 tutorials on how to install hhvm on centos 6.5. However, I always fail when i do the sudo yum install hhvm portion with the following error:

Error: Package: hhvm-3.2.0-1.el6.x86_64 (hop5)
           Requires: mysql
Error: Package: gnote-0.6.3-3.el6.x86_64 (@base)
           Requires: libboost_system-mt.so.5()(64bit)
           Removing: boost-system-1.41.0-27.el6.x86_64 (@base)
               libboost_system-mt.so.5()(64bit)
           Updated By: boost-system-1.54.0-7.el6.x86_64 (hop5)
               Not found
Error: Package: gnote-0.6.3-3.el6.x86_64 (@base)
           Requires: libboost_filesystem-mt.so.5()(64bit)
           Removing: boost-filesystem-1.41.0-27.el6.x86_64 (@base)
               libboost_filesystem-mt.so.5()(64bit)
           Updated By: boost-filesystem-1.54.0-7.el6.x86_64 (hop5)
               Not found

Now I am not a centos 6.5 pro admin so this may be very simple but I can’t seem to find a way to clear up these dependency issues. Any ideas?

The following packages have unmet dependencies


Every time I try to use apt-get install or remove or purge on my Debian, I have this error pop up:

The following packages have unmet dependencies:
 libimage-magick-q16-perl : Depends: libmagickcore-6.q16-2 (>= 8:6.8.9.9) but it is not going to be installed
 libmagick++-6.q16-5 : Depends: libmagickcore-6.q16-2 (>= 8:6.8.9.9) but it is not going to be installed
                       Depends: libmagickwand-6.q16-2 (>= 8:6.8.8.9) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Then I go and run ‘apt-get -f install’ to try to fix it and I get another error:

nichadler@debian-server:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libatkmm-1.6-1 libcairomm-1.0-1 libglibmm-2.4-1c2a libgtkmm-2.4-1c2a
  libgtkspell0 libimage-magick-perl libimage-magick-q8-perl libpangomm-1.4-1
  perlmagick ttf-dejavu-core
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libimage-magick-perl libimage-magick-q8-perl
Suggested packages:
  imagemagick-doc
The following packages will be REMOVED:
  libimage-magick-q16-perl libmagick++-6.q16-5 libpstoedit0c2a pstoedit
The following NEW packages will be installed:
  libimage-magick-q8-perl
The following packages will be upgraded:
  libimage-magick-perl
1 upgraded, 1 newly installed, 4 to remove and 19 not upgraded.
Need to get 0 B/397 kB of archives.
After this operation, 2,540 kB disk space will be freed.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 148618 files and directories currently installed.)
Preparing to unpack .../libimage-magick-q8-perl_8%3a6.9.1-2_amd64.deb ...
Unpacking libimage-magick-q8-perl (8:6.9.1-2) ...
dpkg: error processing archive /var/cache/apt/archives/libimage-magick-q8-perl_8%3a6.9.1-2_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/perl5/5.20/auto/Image/Magick/Magick.so', which is also in package libimage-magick-q16-perl 8:6.8.9.9-5
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libimage-magick-q8-perl_8%3a6.9.1-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any help?

Error with dependencies higher than expected


I try to make msfupdate inside the actuall kali linux sana repository. I dont understand the dependencies. for ex. i have xpdf <= 3.03-11 but 3.03-10 should be installed – wheres the problem?

If i understand it well, <=3.03-11 doesnt mean 3.03-10 is out of range, because 3.03-10 < 3.03-11 is true, right? First i got an error

The following packages have unmet dependencies:
  libfontconfig1: Damaged: xpdf (<= 3.03-11) but 3.03-10 to be installed
E: Error caused by interruptions pkgProblemResolver :: Resolve; This could have been caused by retained packages.

i ran apt-get install reinstall xpdf and it seems to be installed. i tried again msfupdate, theres the next error

The following packages have unmet dependencies:.
  network-manager-gnome: Depends: network-manager (> = 0.9.10) but 0.9.4.0-10 to be installed
  ppp: Damaged: network-manager (<0.9.8.8-7 ~) but 0.9.4.0-10 to be installed
E: Error caused by interruptions pkgProblemResolver :: Resolve; This could have been caused by retained packages

Also <0.9.8.8-7 doesnt mean 0.9.4.0-10 is out of range because 0.9.4.0-10 < 0.9.8.8-7 is also a true statement.

My question: I dont know how much dependency errors are waiting to appear. should i continue installing every error message output manually or is there a better way? I found this topic about a bug. I dont know but maybe it depends to my problem https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727070
.
Maybe someone could find a more moderate title for my question.

aptitude automatically removes packages, while upgrading php


I’ve facing this problem since my debian wheezy distro has been upgraded (I’m currently running ParrotSecurity 1.9 and the current version is 2.0.4).

I’ve added http://dotdeb.org/ to my /etc/apt/sources.list so I can install php5 and run apt-get update
When I do apt-get install php5 it comes with a huge amount of package to remove that has nothing to do with php.

I’ve tried to do apt-get update && apt-get upgrade && apt-get dist-upgrade to upgrade my distro to 2.0.4 but it fails and I stuck at 1.9. I’ve also installing php5 although of removed packages but I always end reinstalling ParrotSecurity 1.9.

This is the console output:

┌─[root@parrotsec]─[~]
└──╼ #aptitude update
Hit http://packages.dotdeb.org wheezy Release.gpg
Hit http://eu.repository.frozenbox.org stable Release.gpg                                                         
Hit http://security.debian.org wheezy/updates Release.gpg                                                                                   
Hit http://packages.dotdeb.org wheezy Release                                                                     
Hit http://eu.repository.frozenbox.org wheezy-updates Release.gpg                                                 
Hit http://security.debian.org wheezy/updates Release                            
Hit http://eu.repository.frozenbox.org stable Release                            
Hit http://packages.dotdeb.org wheezy/all Sources                                
Hit http://eu.repository.frozenbox.org wheezy-updates Release                                               
Hit http://security.debian.org wheezy/updates/main i386 Packages                  
Hit http://packages.dotdeb.org wheezy/all i386 Packages 
Hit http://us.repository.frozenbox.org stable Release.gpg                                                                                             
Hit http://eu.repository.frozenbox.org stable/main Sources                                                                      
Hit http://security.debian.org wheezy/updates/main Translation-en                                                               
Hit http://eu.repository.frozenbox.org stable/contrib Sources                                         
Hit http://eu.repository.frozenbox.org stable/non-free Sources                                        
Hit http://us.repository.frozenbox.org stable Release                                               
Hit http://eu.repository.frozenbox.org stable/main i386 Packages          
Hit http://eu.repository.frozenbox.org stable/contrib i386 Packages                              
Hit http://eu.repository.frozenbox.org stable/non-free i386 Packages                                
Hit http://eu.repository.frozenbox.org stable/contrib Translation-en                                
Hit http://us.repository.frozenbox.org stable/main i386 Packages                                    
Hit http://eu.repository.frozenbox.org stable/main Translation-es         
Hit http://eu.repository.frozenbox.org stable/main Translation-en                                   
Hit http://eu.repository.frozenbox.org stable/non-free Translation-en                               
Hit http://eu.repository.frozenbox.org wheezy-updates/main i386 Packages                            
Ign http://packages.dotdeb.org wheezy/all Translation-es_ES                                         
Ign http://packages.dotdeb.org wheezy/all Translation-es                                            
Hit http://eu.repository.frozenbox.org wheezy-updates/contrib i386 Packages                         
Ign http://packages.dotdeb.org wheezy/all Translation-en                                            
Hit http://eu.repository.frozenbox.org wheezy-updates/non-free i386 Packages
Hit http://eu.repository.frozenbox.org wheezy-updates/contrib Translation-en
Hit http://eu.repository.frozenbox.org wheezy-updates/main Translation-en 
Hit http://eu.repository.frozenbox.org wheezy-updates/non-free Translation-en
Ign http://us.repository.frozenbox.org stable/main Translation-es_ES
Ign http://us.repository.frozenbox.org stable/main Translation-es
Ign http://us.repository.frozenbox.org stable/main Translation-en
                                                                                                                                              5.894 kB/s 0seg.
┌─[root@parrotsec]─[~]
└──╼ #aptitude install php5
Se instalarán los siguiente paquetes NUEVOS:     
  apache2-bin{a} apache2-data{a} libaudit-common{ab} libaudit1{a} libdb5.3{a} libjpeg62-turbo{a} libjson-c2{a} libmotif-common{a} libopenjpeg5{a} 
  libpoppler46{a} libtiff5{a} libxm4{a} php5-json{a} 
Se ELIMINARÁN los siguientes paquetes:
  apache2.2-common{u} 
Se actualizarán los siguientes paquetes:
  apache2 apache2-utils apache2.2-bin dpkg fontconfig fontconfig-config install-info libapache2-mod-dnssd libapache2-mod-php5 libapr1 libaprutil1 
  libc-bin libc6 libfontconfig1 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libonig2 libpcre3 libpipeline1 libselinux1 libtirpc1 
  libxml2 locales locales-all man-db nfs-common nscd php5 php5-common xpdf 
33 paquetes actualizados, 13 nuevos instalados, 1 para eliminar y 2064 sin actualizar.
Necesito descargar 28,9 MB de ficheros. Después de desempaquetar se usarán 21,4 MB.
No se satisfacen las dependencias de los siguientes paquetes:
 libaprutil1-dbd-sqlite3 : Depende: libaprutil1 (= 1.4.1-3) pero se va a instalar 1.5.4-1.
 libpcre3-dev : Depende: libpcre3 (= 1:8.30-5) pero se va a instalar 2:8.35-3.3.
 libc-dev-bin : Depende: libc6 (< 2.14) pero se va a instalar 2.19-18+deb8u1.
 php5-sqlite : Depende: php5-common (= 5.4.39-0+deb7u1) pero se va a instalar 5.6.7+dfsg-1.
 libaprutil1-ldap : Depende: libaprutil1 (= 1.4.1-3) pero se va a instalar 1.5.4-1.
 apache2-mpm-prefork : Depende: apache2.2-common (= 2.2.22-13+deb7u4) pero no será instalado.
                       Depende: apache2.2-bin (= 2.2.22-13+deb7u4) pero se va a instalar 2.4.10-10+deb8u3.
 libaudit-common : Rompe: libaudit0 pero está instalado 1:1.7.18-1.1.
 libfontconfig1-dev : Depende: libfontconfig1 (= 2.9.0-7.1) pero se va a instalar 2.11.0-6.3.
 libc6-i686 : PreDepende: libc6 (= 2.13-38+deb7u8) pero se va a instalar 2.19-18+deb8u1.
 php5-curl : Depende: php5-common (= 5.4.39-0+deb7u1) pero se va a instalar 5.6.7+dfsg-1.
 libxml2-dev : Depende: libxml2 (= 2.8.0+dfsg1-7+wheezy3) pero se va a instalar 2.9.1+dfsg1-5.
 php5-mcrypt : Depende: php5-common (= 5.4.39-0+deb7u1) pero se va a instalar 5.6.7+dfsg-1.
 libc6-dev : Depende: libc6 (= 2.13-38+deb7u8) pero se va a instalar 2.19-18+deb8u1.
 php5-ldap : Depende: php5-common (= 5.4.39-0+deb7u1) pero se va a instalar 5.6.7+dfsg-1.
 php5-mysql : Depende: php5-common (= 5.4.39-0+deb7u1) pero se va a instalar 5.6.7+dfsg-1.
 php5-cli : Depende: php5-common (= 5.4.39-0+deb7u1) pero se va a instalar 5.6.7+dfsg-1.
abierto: 248; cerrado: 303; diferido: 96; conflicto: 116                                                                                                     .The following action will fix the dependencies

       Delete the following package:                                      
1)       apache2                                                              
2)       apache2-mpm-prefork                                                  
3)       apache2.2-bin                                                        
4)       armitage                                                             
5)       beef-xss                                                             
6)       bluelog                                                              
7)       bluemaho                                                             
8)       build-essential                                                      
9)       clang                                                                
10)      firmware-mod-kit                                                     
11)      g++                                                                  
12)      g++-4.6                                                              
13)      g++-4.7                                                              
14)      gccxml                                                               
15)      golismero                                                            
16)      gtkd                                                                 
17)      http-tunnel                                                          
18)      inurlbr                                                              
19)      libapache2-mod-dnssd                                                 
20)      libapache2-mod-php5                                                  
21)      libaprutil1-dbd-sqlite3                                              
22)      libaprutil1-ldap                                                     
23)      libatk1.0-dev                                                        
24)      libaudit0                                                            
25)      libbluetooth-dev                                                     
26)      libc-dev-bin                                                         
27)      libc6-dev                                                            
28)      libc6-i686                                                           
29)      libcairo2-dev                                                        
30)      libexpat1-dev                                                        
31)      libfontconfig1-dev                                                   
32)      libfreetype6-dev                                                     
33)      libgdk-pixbuf2.0-dev                                                 
34)      libglib2.0-dev                                                       
35)      libgnuradio-baz                                                      
36)      libgtk2.0-dev                                                        
37)      libnet1-dev                                                          
38)      libopenobex1-dev                                                     
39)      libpango1.0-dev                                                      
40)      libpcap-dev                                                          
41)      libpcap0.8-dev                                                       
42)      libpcre3-dev                                                         
43)      libpng12-dev                                                         
44)      libsoup2.4-dev                                                       
45)      libssl-dev                                                           
46)      libstdc++6-4.6-dev                                                   
47)      libstdc++6-4.7-dev                                                   
48)      libusb-dev                                                           
49)      libvte-dev                                                           
50)      libwebkit-dev                                                        
51)      libwebkitgtk-dev                                                     
52)      libxft-dev                                                           
53)      libxml2-dev                                                          
54)      mate-user-share                                                      
55)      metasploit                                                           
56)      parrot-cloud-controller                                              
57)      parrot-interface                                                     
58)      parrot-update-manager                                                
59)      penmode2                                                             
60)      php5                                                                 
61)      php5-cli                                                             
62)      php5-curl                                                            
63)      php5-ldap                                                            
64)      php5-mcrypt                                                          
65)      php5-mysql                                                           
66)      php5-sqlite                                                          
67)      powerfuzzer                                                          
68)      python-ctypeslib                                                     
69)      python-dev                                                           
70)      python-gobject-2-dev                                                 
71)      python-gtk2-dev                                                      
72)      python2.7-dev                                                        
73)      ruby1.8-dev                                                          
74)      tdsog                                                                
75)      vega                                                                 
76)      xorg                                                                 
77)      xplico                                                               
78)      xserver-xorg                                                         
79)      xserver-xorg-core                                                    
80)      xserver-xorg-input-all                                               
81)      xserver-xorg-input-evdev                                             
82)      xserver-xorg-input-mouse                                             
83)      xserver-xorg-input-synaptics                                         
84)      xserver-xorg-input-vmmouse                                           
85)      xserver-xorg-input-wacom                                             
86)      xserver-xorg-video-all                                               
87)      xserver-xorg-video-apm                                               
88)      xserver-xorg-video-ark                                               
89)      xserver-xorg-video-ati                                               
90)      xserver-xorg-video-chips                                             
91)      xserver-xorg-video-cirrus                                            
92)      xserver-xorg-video-fbdev                                             
93)      xserver-xorg-video-geode                                             
94)      xserver-xorg-video-i128                                              
95)      xserver-xorg-video-i740                                              
96)      xserver-xorg-video-intel                                             
97)      xserver-xorg-video-mach64                                            
98)      xserver-xorg-video-mga                                               
99)      xserver-xorg-video-neomagic                                          
100)     xserver-xorg-video-nouveau                                           
101)     xserver-xorg-video-openchrome                                        
102)     xserver-xorg-video-r128                                              
103)     xserver-xorg-video-radeon                                            
104)     xserver-xorg-video-rendition                                         
105)     xserver-xorg-video-s3                                                
106)     xserver-xorg-video-s3virge                                           
107)     xserver-xorg-video-savage                                            
108)     xserver-xorg-video-siliconmotion                                     
109)     xserver-xorg-video-sis                                               
110)     xserver-xorg-video-sisusb                                            
111)     xserver-xorg-video-tdfx                                              
112)     xserver-xorg-video-trident                                           
113)     xserver-xorg-video-tseng                                             
114)     xserver-xorg-video-vesa                                              
115)     xserver-xorg-video-vmware                                            
116)     xserver-xorg-video-voodoo                                            
117)     xvfb                                                                 
118)     zlib1g-dev                                                           

       Keep the following package on same version:                 
119)     apache2-bin [Sin instalar]                                           

       Leave the following dependencies unresolved:                        
120)     libc6 recomienda libc6-i686                                          
121)     python2.7-dev recomienda libc6-dev | libc-dev                        
122)     mate-desktop-environment-extras recomienda mate-user-share (>= 1.8.0)
123)     python-pip recomienda build-essential                                
124)     parrot-stealth recomienda gtkdialog                                  
125)     dpkg-dev recomienda build-essential                                  
126)     parrot-tools recomienda apache2                                      
127)     parrot-tools recomienda bluelog                                      
128)     parrot-tools recomienda bluemaho                                     
129)     parrot-tools recomienda golismero                                    
130)     parrot-tools recomienda inurlbr                                      
131)     parrot-tools recomienda libnet1-dev                                  
132)     parrot-tools recomienda libpcap-dev                                  
133)     parrot-tools recomienda metasploit                                   
134)     parrot-tools recomienda armitage                                     
135)     parrot-tools recomienda parrot-cloud-controller                      
136)     parrot-tools recomienda tdsog                                        
137)     parrot-tools recomienda vega                                         
138)     parrot-tools recomienda penmode2                                     
139)     gcc-4.7 recomienda libc6-dev (>= 2.13-5)                             
140)     gcc-4.6 recomienda libc6-dev (>= 2.13-5)                             
141)     parrot-meta-forensic recomienda firmware-mod-kit                     
142)     parrot-meta-forensic recomienda xplico                               
143)     python-scipy recomienda g++ | c++-compiler                           
144)     python-scipy recomienda python-dev                                   
145)     xinit recomienda xserver-xorg | xserver                              
146)     parrot-meta-wireless recomienda bluelog                              
147)     parrot-meta-wireless recomienda bluemaho                             
148)     criptator recomienda penmode2                                        
149)     parrot-meta-sdr recomienda libgnuradio-baz                           
150)     gcc recomienda libc6-dev | libc-dev                                  
151)     rubygems recomienda ruby1.8-dev                                      
152)     rubygems recomienda build-essential                                  
153)     lightdm recomienda xserver-xorg                                      
154)     parrot-meta-web recomienda apache2                                   
155)     parrot-meta-web recomienda beef-xss                                  
156)     parrot-meta-web recomienda golismero                                 
157)     parrot-meta-web recomienda http-tunnel                               
158)     parrot-meta-web recomienda php5                                      
159)     parrot-meta-web recomienda php5-mysql                                
160)     parrot-meta-web recomienda powerfuzzer                               
161)     parrot-meta-web recomienda vega                                      
162)     xserver-xorg-input-all recomienda xserver-xorg-input-wacom           
163)     bundler recomienda ruby-dev                                          
164)     bundler recomienda build-essential                                   


Accept this solution? [Y/n/q/?]

apt-get doesn't work on kali linux v2.0 [closed]


For example, when i type apt-get install tor i get :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libpcap0.8-dev : Depends: libpcap0.8 (= 1.3.0-1) but 1.6.2-2 is to be installed
libsqlite3-dev : Depends: libsqlite3-0 (= 3.7.16.2-1~bpo70+1) but 3.8.7.1-1+deb8u1 is to be installed
tor : Depends: libseccomp2 (>= 0.0.0~20120605) but it is not going to be installed
      Recommends: tor-geoipdb but it is not going to be installed
      Recommends: torsocks but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Even when i type apt-get -f install tor i get the same error !

apt-get doesn't work on kali linux v2.0 [closed]


For example, when i type apt-get install tor i get :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libpcap0.8-dev : Depends: libpcap0.8 (= 1.3.0-1) but 1.6.2-2 is to be installed
libsqlite3-dev : Depends: libsqlite3-0 (= 3.7.16.2-1~bpo70+1) but 3.8.7.1-1+deb8u1 is to be installed
tor : Depends: libseccomp2 (>= 0.0.0~20120605) but it is not going to be installed
      Recommends: tor-geoipdb but it is not going to be installed
      Recommends: torsocks but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Even when i type apt-get -f install tor i get the same error !

Question and Answer is proudly powered by WordPress.
Theme "The Fundamentals of Graphic Design" by Arjuna
Icons by FamFamFam