[SOLVED] Trouble installing new apps from Show Applications
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trouble installing new apps from Show Applications
I cannot install new apps. I thought this was limited to my problem installing FlightGear, but when I tried to install Wine, I got the exact same error message:
Unable to install Wine:
Error while installing package: trying to overwrite '/usr/share/games/flightgear/Aircraft/c172p/WebPanel/bootstrap/bootstrap.min.css', which is also in package flightgear-phi2016.4.2+dfsg1-1
I even tried removing all files and directories under '/usr/share/games/' from the terminal prompt, including the 'flightgear' directory. Even so, I still get this same error message, although none of those subdirectories or files exist anymore.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by coderlen
I cannot install new apps. I thought this was limited to my problem installing FlightGear, but when I tried to install Wine, I got the exact same error message:
Unable to install Wine:
Error while installing package: trying to overwrite '/usr/share/games/flightgear/Aircraft/c172p/WebPanel/bootstrap/bootstrap.min.css', which is also in package flightgear-phi2016.4.2+dfsg1-1
I even tried removing all files and directories under '/usr/share/games/' from the terminal prompt, including the 'flightgear' directory. Even so, I still get this same error message, although none of those subdirectories or files exist anymore.
Thanks for your help.
From your sidebar, it seems you maybe using Ubuntu, if I'm right in thinking that; I'd do a search for a package containing the file it's complaining about. As it says you have another package installed that provides the same file. It would still be listed in your package managers database that, the file mentioned is still installed on your system, even though you manually deleted it. It's a bad idea to manually remove files outside of the package manager where those same files have been installed via software packages.
Type the following command into a terminal window;
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
While you could try uninstalling the flightgear-phi package and then try installing the wine package; it's probably a good idea to see if there is any conflicting software repositories in your package manager's repositories list;
Run the following command and post the output using CODE tags;
OK,jsbjsb001, here is the result of the grep command you gave me:
Code:
/usr/share/games$ sudo grep -Erh ^deb /etc/apt/sources.list*
[sudo] password for len:
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu bionic main
deb http://ppa.launchpad.net/mscore-ubuntu/mscore-stable/ubuntu bionic main
deb http://ppa.launchpad.net/itachi-san/gvfs-mtp/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/flightgear/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/flightgear/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic main
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
deb http://ppa.launchpad.net/itachi-san/gvfs-mtp/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
deb http://ppa.launchpad.net/rosco2/backports/ubuntu bionic main
deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
deb https://download.sublimetext.com/ apt/stable/
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu bionic main
deb http://ppa.launchpad.net/mscore-ubuntu/mscore-stable/ubuntu bionic main
deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/rosco2/backports/ubuntu bionic main
deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
deb https://download.sublimetext.com/ apt/stable/
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic main
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by coderlen
OK,jsbjsb001, here is the result of the grep command you gave me:
Code:
/usr/share/games$ sudo grep -Erh ^deb /etc/apt/sources.list*
[sudo] password for len:
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu bionic main
deb http://ppa.launchpad.net/mscore-ubuntu/mscore-stable/ubuntu bionic main
deb http://ppa.launchpad.net/itachi-san/gvfs-mtp/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/flightgear/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/flightgear/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic main
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
deb http://ppa.launchpad.net/itachi-san/gvfs-mtp/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
deb http://ppa.launchpad.net/rosco2/backports/ubuntu bionic main
deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
deb https://download.sublimetext.com/ apt/stable/
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu bionic main
deb http://ppa.launchpad.net/mscore-ubuntu/mscore-stable/ubuntu bionic main
deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/rosco2/backports/ubuntu bionic main
deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
deb https://download.sublimetext.com/ apt/stable/
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic main
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
It looks like you have the winehq software repository in your sources.list file twice and it's actually for the winehq.org site, not from Ubuntu's software repositories. I think this could well be your problem - try removing the entries I've highlighted in bold for you above. Then try installing wine again.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by coderlen
jsbjsb001, what you have suggested makes perfect sense. I just am not sure how to "remove" the entries you highlighted.
So before I try anything, I am going to post here the commands I intend to run, before actually doing it. Here goes.
Code:
sudo dpkg -r deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
sudo dpkg -r deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
Does this look right? If not,please edit them for correctness before I try it live. Thanks.
No, the "-r" option just removes packages, not software repositories. Just directly edit the /etc/apt/sources.list file with a text editor and remove them. It's just a ASCII text file.
I edited the sources.list file with vi, and now the wine-builds line is commented out.
But when I run the sudo grep command again, the wine-builds line is still showing:
Code:
sudo grep -Erh ^deb /etc/apt/sources.list*
[sudo] password for len:
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu bionic main
deb http://ppa.launchpad.net/mscore-ubuntu/mscore-stable/ubuntu bionic main
deb http://ppa.launchpad.net/itachi-san/gvfs-mtp/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/flightgear/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/flightgear/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic main
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
deb http://ppa.launchpad.net/itachi-san/gvfs-mtp/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
deb http://ppa.launchpad.net/rosco2/backports/ubuntu bionic main
deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
deb https://download.sublimetext.com/ apt/stable/
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu bionic main
deb http://ppa.launchpad.net/mscore-ubuntu/mscore-stable/ubuntu bionic main
deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/rosco2/backports/ubuntu bionic main
deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
deb https://download.sublimetext.com/ apt/stable/
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic main
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
In spite of the fact that the wine-builds line still appears, I tried to install Wine again, and of course I got the exact same error I've been getting all along:
Code:
Unable to install Wine:
Error while installing package: trying to overwrite '/usr/share/games/flightgear/Aircraft/c172p/WebPanel/bootstrap/bootstrap.min.css', which is also in package flightgear-phi2016.4.2+dfsg1-1
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by coderlen
I edited the sources.list file with vi, and now the wine-builds line is commented out.
But when I run the sudo grep command again, the wine-builds line is still showing:
Code:
sudo grep -Erh ^deb /etc/apt/sources.list*
[sudo] password for len:
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu bionic main
deb http://ppa.launchpad.net/mscore-ubuntu/mscore-stable/ubuntu bionic main
deb http://ppa.launchpad.net/itachi-san/gvfs-mtp/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/flightgear/ubuntu bionic main
deb http://ppa.launchpad.net/saiarcot895/flightgear/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic main
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
deb http://ppa.launchpad.net/itachi-san/gvfs-mtp/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu bionic main
deb http://ppa.launchpad.net/rosco2/backports/ubuntu bionic main
deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
deb https://download.sublimetext.com/ apt/stable/
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu bionic main
deb http://ppa.launchpad.net/mscore-ubuntu/mscore-stable/ubuntu bionic main
deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/rosco2/backports/ubuntu bionic main
deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
deb https://download.sublimetext.com/ apt/stable/
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic main
deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
In spite of the fact that the wine-builds line still appears, I tried to install Wine again, and of course I got the exact same error I've been getting all along:
Code:
Unable to install Wine:
Error while installing package: trying to overwrite '/usr/share/games/flightgear/Aircraft/c172p/WebPanel/bootstrap/bootstrap.min.css', which is also in package flightgear-phi2016.4.2+dfsg1-1
I can't imagine what the problem is.
I dare say it's the line I've highlighted in bold above that's still the problem. You will need to use a text editor that's more user friendly, so we can be certain that line is gone. I will say also that all of those PPA's you have in apt's repositories list are concerning and may well cause further problems later on. Let's just take it step by step, run the command below;
Code:
sudo gedit /etc/apt/sources.list
gedit should be installed by default and should be much easier to use than vi. Once you've removed that line, then try again to install the wine package.
I used gedit as you suggested. Although the 'wine-builds' line is still there, it is commented out.
Just to be sure, I removed the commented-out 'wine-builds' line. Then I attempted another install of Wine, but I got the same error:
Code:
Unable to install Wine:
Error while installing package: trying to overwrite '/usr/share/games/flightgear/Aircraft/c172p/WebPanel/bootstrap/bootstrap.min.css', which is also in package flightgear-phi2016.4.2+dfsg1-1
Perhaps the 'wine-builds' line is in another file which is accessed when I try to install Wine. Could that be?
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by coderlen
I used gedit as you suggested. Although the 'wine-builds' line is still there, it is commented out.
Just to be sure, I removed the commented-out 'wine-builds' line. Then I attempted another install of Wine, but I got the same error:
Code:
Unable to install Wine:
Error while installing package: trying to overwrite '/usr/share/games/flightgear/Aircraft/c172p/WebPanel/bootstrap/bootstrap.min.css', which is also in package flightgear-phi2016.4.2+dfsg1-1
Perhaps the 'wine-builds' line is in another file which is accessed when I try to install Wine. Could that be?
ok, I was thinking it may well still give you an error, but I think we are closer to resolving this for you. Now it's time to get a little more forceful;
Run the following command to remove the flightgear-phi package forcefully;
Code:
sudo dpkg --purge --force-all flightgear-phi
Then try installing the wine package again. Let us know how it goes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.