Need help!

If none of the more specific forums is the right place to ask

Need help!

Postby Malvazar » 2014-03-09 17:10

Okay so I don't know how I did it, but I somehow managed to crash my gui interface by installing wine. When ever I start the computer now I don't get the usual graphical interface I just get a terminal like screen for login. It was working perfectly fine right up untill I installed wine using the following commands.
Code: Select all
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine
sudo apt-get install winetricks


Please help I really don't want to have to reinstall the system AGAIN because of this......
User avatar
Malvazar
 
Posts: 24
Joined: 2014-03-06 17:15

Re: Need help!

Postby M51 » 2014-03-09 17:51

You broke your system by installing from an Ubuntu repository.

To fix it:

1) Purge all the packages from that repository, then remove the repository.

2) Reinstall the missing Debian packages.

3) Repeat to yourself five times: "Debian is not Ubuntu. I will not do that again" :)
M51
 
Posts: 397
Joined: 2013-05-13 01:38

Re: Need help!

Postby Malvazar » 2014-03-09 18:08

okay so how do i do that exactly? I'm not exactly a termial expert.
User avatar
Malvazar
 
Posts: 24
Joined: 2014-03-06 17:15

Re: Need help!

Postby \hbar » 2014-03-09 18:51

Here's my proposition: open a new file with emacs or nano, or whatever you prefer, call it ppa-filer (or whatever you want to call it). Write the following lines inside:

Code: Select all
#!/bin/bash

for package in `dpkg -l | awk '{print $2}'`;do
  from_ppa=`apt-cache policy "$package" | grep -c "ppa:ubuntu-wine/ppa"`
  if test "$from_ppa" -gt 0;then
    echo "$package"
  fi
done

then run

Code: Select all
/bin/bash ppa-filter


Let me explain a bit: this is a shell script (i.e. a sequence of terminal commands that the shell will execute one after the other) that does the following: it loops over all the installed packages (listed by "dpkg -l | awk '{print $2}'"), then checks whether the package is from the ubuntu ppa by asking apt-cache to list the information and search for "ppa:ubuntu-wine/ppa" within that information. It then stores a number, that is larger than 0 only if the package is from the ubuntu ppa in tha variable $from_ppa. It then checks whether $from_ppa is larger than 0, and if so, it prints the name of the package.

So this script will only tell you which packages are from the ppa. The idea is that if there are just a couple of them, you can decide which ones you don't need and remove them by hand using apt-get purge, and which ones you need which you must remove, and then reinstall from the debian repository (using apt-get install after removing the ppa from your sources.list).

If there are too many packages to be dealt with by hand, you can automate their removal and replacement by debian packages, although you should ONLY do this IF YOU KNOW WHAT YOU'RE DOING. You can cause serious borking of your system by automating the removal and installation of packages.
Last edited by \hbar on 2014-03-09 18:56, edited 2 times in total.
MacBookPro5,5 - 2.53 GHz core 2 duo - Debian jessie
MacMini - Core i7 - Debian jessie
User avatar
\hbar
 
Posts: 41
Joined: 2011-04-22 12:52

Re: Need help!

Postby \hbar » 2014-03-09 18:54

PS: you can also automate your punishment by running
Code: Select all
for i in {1..5};do echo "Debian is not Ubuntu. I will not do that again";done
MacBookPro5,5 - 2.53 GHz core 2 duo - Debian jessie
MacMini - Core i7 - Debian jessie
User avatar
\hbar
 
Posts: 41
Joined: 2011-04-22 12:52


Re: Need help!

Postby Malvazar » 2014-03-09 19:01

I guess I'm just going to have to reinstall the os again because none of that made any sence to me. But thanks for trying anyways. I just don't understand technical talk at all.
User avatar
Malvazar
 
Posts: 24
Joined: 2014-03-06 17:15

Re: Need help!

Postby \hbar » 2014-03-09 19:06

That sounds more reasonable... Good luck, and be more careful with repos in the future.
MacBookPro5,5 - 2.53 GHz core 2 duo - Debian jessie
MacMini - Core i7 - Debian jessie
User avatar
\hbar
 
Posts: 41
Joined: 2011-04-22 12:52

Re: Need help!

Postby dasein » 2014-03-09 19:13

Malvazar wrote:I guess I'm just going to have to reinstall the os...

Good plan. But be forewarned: if you pollute the re-install with non-Debian sources, you'll end up right back in this same place, with a broken system, mysterious "updates," etc.

If you're not sure what any of this means, then maybe spend a little time learning about distros, releases, etc. before you proceed.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Need help!

Postby M51 » 2014-03-09 19:28

As a non-technical user, your best bet is to avoid messing with your sources.list file or running anything that includes "add-apt-repository". Stick to the software in the default repositories. If you find you absolutely need software that is only available elsewhere, then it may be easier for you to switch to a distro that has it rather than deal with eventual chaos of pulling from multiple repositories. If that means moving from Debian to another distro, that's fine. Use whatever works for you.
M51
 
Posts: 397
Joined: 2013-05-13 01:38

Re: Need help!

Postby stevepusser » 2014-03-09 20:08

Exactly why were you trying to get Wine from an Ubuntu PPA? If you were trying to get a newer version, there are some people that are building newer versions of Wine that won't bork your system.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11249
Joined: 2009-10-06 05:53

Re: Need help!

Postby stevepusser » 2014-03-09 21:23

wizard10000 wrote:I'm a little confused, since add-apt-repository isn't a Debian package. Are we sure OP isn't running *buntu?


Based on the 1289 updates, it was the hideous spawn of Wheezy, Ubuntu, and some number of PPAs.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11249
Joined: 2009-10-06 05:53

Re: Need help!

Postby llivv » 2014-03-09 21:28

wizard10000 wrote:I'm a little confused

Me too!
thanks for clearing that up for me, and giving me a reason to read some more of this thread.
what can I say, it's been a long week.

/hba
thanks for posting the scrip and loop lesson. I would have missed it if not for wizards post.
I already have a list of current installed packages - 1967 in all - yes it's sid / gnome
and will be messin around with the loop to get a better handle on how they work.

I think I also found the reason my gpu crashed, but still only guessing
I removed one of my ext4 mount options auto_da_alloc a few weeks / months ago.
I thought I'd read in the mount manual that is was now an ext4 default.
Long story short, I put auto_da_alloc back in fstab with journal_async_commit and bootup looks much cleaner
then it has in several weeks.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5488
Joined: 2007-02-14 18:10
Location: cold storage


Return to General Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable