Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I want to install anything with the apt-get I get an error.For example :

amin@Amin-PC:~$ sudo apt-get install gnome-shell-extension-weather
[sudo] password for amin: 

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:
 gnome-shell-extension-weather : Depends: seed but it is not going to be installed
 libgtk-3-0 : Depends: libwayland-client0 (>= 1.1.90) but it is not going to be installed
              Depends: libwayland-cursor0 (>= 1.1.90) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
amin@Amin-PC:~$ 

then i tried :

amin@Amin-PC:~$ su -
Password: 
root@Amin-PC:~# 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:
  java-wrappers p7zip
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libwayland-client0 libwayland-cursor0
The following NEW packages will be installed:
  libwayland-client0 libwayland-cursor0
0 upgraded, 2 newly installed, 0 to remove and 226 not upgraded.
26 not fully installed or removed.
Need to get 0 B/36.7 kB of archives.
After this operation, 155 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 208142 files and directories currently installed.)
Unpacking libwayland-client0:amd64 (from .../libwayland-client0_1.2.0-0ubuntu1~13.04~ricotz0_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libwayland-client0_1.2.0-0ubuntu1~13.04~ricotz0_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libwayland-client.so.0.1.0', which is also in package libwayland0:amd64 1.0.5-0ubuntu1
No apport report written because MaxReports is reached already
                                                              Unpacking libwayland-cursor0:amd64 (from .../libwayland-cursor0_1.2.0-0ubuntu1~13.04~ricotz0_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libwayland-cursor0_1.2.0-0ubuntu1~13.04~ricotz0_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libwayland-cursor.so.0.0.0', which is also in package libwayland0:amd64 1.0.5-0ubuntu1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 /var/cache/apt/archives/libwayland-client0_1.2.0-0ubuntu1~13.04~ricotz0_amd64.deb
 /var/cache/apt/archives/libwayland-cursor0_1.2.0-0ubuntu1~13.04~ricotz0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Amin-PC:~# 

How can i fix it?

share|improve this question
1  
You should update your question with the PPA you are using. –  Salem Sep 2 '13 at 13:14

1 Answer 1

up vote 0 down vote accepted

in your terminal (CTRL+ALT+T)

sudo -i
dpkg -i --force-overwrite  /var/cache/apt/archives/libwayland-client0_1.2.0-0ubuntu1~13.04~ricotz0_amd64.deb
dpkg -i --force-overwrite  /var/cache/apt/archives/libwayland-cursor0_1.2.0-0ubuntu1~13.04~ricotz0_amd64.deb
share|improve this answer
    
Won't this cause wreckage mixing PPA's and official packages? –  Braiam Sep 2 '13 at 13:37
    
No , it will not give you any further problems. –  AgentCool Sep 2 '13 at 13:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.