I'm really in a bad situation here. I uninstalled and purged all instances of Wine in my system, including the .wine directory, and proceeded to install the latest Wine Stable 4. However, after the setup, I went to access my Documents folder, and other folders where I had data, and everything was empty, including the Trash, Downloads, etc. My Thunderbird and Firefox were all set to default, meaning I had a profile that was like it's first time use and completely empty.   Please help me to find a way to restore all of the data in my profile regarding settings and documents, files, images, etc.  I totally blew it, and now I realized that Ubuntu doesn't have a built-in System Restore feature. Any and all assistance you can offer will be greatly appreciated.  @ThomasWard: I ran these commands to uninstall Wine: sudo apt-get purge wine wine-* AND sudo apt-get autoremove --purg. All my data from the Documents, Downloads, Pictures, Music, etc is gone. It's like a brand new profile -- blank -- Is there a way to restore the profile using the /etc/skel/ "skeleton" directory? (I was advised to append the @ to your name to ensure you receive notice of my response)   @K7AAY -- I don't believe another user was created. I went to logoff, and when I was prompted to logon, my same username was displaying for me to login. I used the same password and let me in. I also changed between the different Ubuntu Desktop options, but the same situation -- all data was gone.   From a Post no longer available as of today, Dec 20, 2019  Actually, there are few things in Ubuntu et al. that will allow you to roll-back changes. Brief below:  /var/backups/dpkg.status.*: this directory keeps a set of log of the last system state prior to an install as follows; /var/backups/dpkg.status.0 is the most recent log prior to a state change (e.g. package install/remove/update ...etc); /var/backups/dpkg.status.?.gz are compressed, archived versions of the logs at various points in time, rotated monthly. /var/lib/dpkg/status: this is the current state of installed packages. Manually backing this up, or providing a logrotate script in /etc/logrotate.d will ensure schedule snapshots of your system state to your liking.  Roll-back: the corner stone is your previous state /var/backups/dpkg.status.0. Here is a brief step-wise procedure to restore previous package state (note brief and not exhaustive).  a. cp /var/backups/dpkg.status /var/lib/dpkg/status (will revert back the package state one version back).  b. dpkg -l | grep ii (will give you a list of supposedly installed packages based on the rolled-back /var/lib/dpkg/status file achieved in step a. above).  c. dpkg -l | grep ii | awk '{print "apt-get --reinstall -y install", $2}' &gt; /tmp/reinstall &amp;&amp; sh /tmp/reinstall (will create a simple one-liner shell script and runs that to reinstall packages determined to have been on the system prior to an apt-get operation)  d. apt-get --reinstall install ucf (will take care of sanitising /etc config files et. al)  e. Repeat step c. if/as necessary   Is this still relevant although the old post was from 8yrs ago?  Output from History  ersalabert@ersalabert-Lenovo-ideapad-320-15IKB-Touch:~$ history     1  wget -nc https://dl.winehq.org/wine-builds/winehq.key     2  sudo apt-key add winehq.key     3  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'     4  nordvpn c     5  sudo apt-get purge wine wine-*     6  sudo apt-get autoremove --purge     7  rm -rf ~/ .wine/     8  rm -rf ~/.wine/     9  rm -rf ~/.local/share/applications/wine*    10  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'    11  sudo apt install --install-recommends winehq-stable    12  wine --version    13  winecfg    14  sudo apt autoremove wine-devel wine-devel-amd64 wine-devel-i386 winehq-devel winetricks    15  sudo apt-get remove --autoremove wine-*
121652
Okay, so I was trying to uninstall a program called Kodi. I ran the following commands in terminal:  sudo apt-get update sudo apt-get remove kodi* sudo apt-get purge kodi*   I was reading it on this site:   So, the next thing it says to do is this:  rm -r ~/.kodi/   After this, I'm not sure what the terminal output was, something about the command not being able to do that because of something.   Then, Ubuntu welcome pops up, just like when you first install it. I went to desktop, it was empty, all my files gone. I restarted the PC, only to come to realize that it's a fresh installation of Ubuntu.   Can someone explain what the heck is going on?
2198
For some reason I can't boot my system. I get an error akin to Operating System Not Found.   I tried bootrepair, and that didn't work. So then I decided I would just save my personal files, wipe everything, and reinstall.   But in the live session, when I go to the /home directory, my username folder isn't there, instead it goes to the Live CD's desktop and other directories. Is there some other error occurring? Is there a way to recover the files?
25359
I have followed all the instructions on .  In particular, I have run the following commands: sudo dpkg --add-architecture i386  wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'   The first three of the above seemed to work fine.  However, the last command gives me the following error: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  winehq-stable : Depends: wine-stable (= 5.0.0~bionic) E: Unable to correct problems, you have held broken packages.  I'm running Lubuntu 18.04.3 on a USB live stick.  (However, if I remember correctly, a couple days ago I got the exact same error on a normal hard disk Lubuntu 18.04.3 installation.) I've read that a lot of people get similar errors.  Unfortunately I haven't found any solutions online that worked. Any help would be much appreciated.  Thanks! EDIT:  Thanks for the comments and suggestions everyone.  I'll try them out later today. In the mean time, here's something I don't understand.  Ubuntu 18.04 has been around for almost two years now.  In all that time, surely somebody has successfully installed wine, right?  What did they do to get it working?
95213
Recently I deleted the folder Desktop from my $HOME directory. When I logged in again all files and directories in $HOME were shown on the desktop. So I wanted to get the folder back. What is the recommended way to achieve this? I edited ~/.config/xdg-user-dirs.dir and added the correct variable. But I guess there must be some other (more easy?) way.
11772
I'm quite new to Ubuntu and want to create a backup. I'm really not sure what files and folders to include so that if I restore my system it will be as it is now. I can't seem to find good details of this anywhere. Hopefully someone could help me with this. Is it possible to backup everything as it is now so in the event of a system restore I don't have to reinstall programs and settings?
29588
I used sudo apt-get remove python command and accidently removed a bunch of packages that were required. I logged in via command line and installed ubuntu-desktop again but there are other packages that are missing, and I'm looking for a way to easily reinstall those removed packages. Since there's the log at software-center I wanted to ask what the easiest way might be to roll back changes or extract the removed packages list from the software center...  note: I typed sudo apt-get install .... .... ... ... for about two dozen of those removed programs in that list, but when I pressed enter it didn't install any of them because some package names couldn't be found.  The programs were removed at the same date.
51575
By accident I've removed some folders (they were empty) in my home folder. I've created a new ones but they doesn't have proper icons etc... how can I recreate them step by step?
110035
I normally download all .deb packages and just copy the packages from /var/cache/apt/archives directory to the rest of the computers, saving me to have to download all the updates and programs again. But since Ubuntu 11.04, the directory keeps deleting the oldest file or some kind of delete method that literally resets the amount of packages there. So then I need to download them again on the rest of the PCs. The files stay there for a couple of days, but then "magically" it's not there anymore after some days.   So what do I need to do to tell Ubuntu NOT to eliminate any files from /var/cache/apt/archives, not even the previous versions of the same package? I do not want it to delete anything from there.  Just to add, I install packages using aptitude or synaptic.
22233
I just accidentally mounted a new drive to a folder that already contained files.  I don't care about them and have them somewhere else, but that folder appears empty now.  I'm curious what happened to the files.  Are they simply deleted by Linux?
22722
This a specification of my previous question () where I wondered how to create a .desktop file in order to create an icon on the launcher for a Wine application.  I don't understand what do we have to do with the following code:   [Desktop Entry] Name=FooBar Comment=Foo &amp; Bar Exec=sh -c "cd /home/USER/.wine/drive_c/Program\ Files/FOOBAR_FOLDER; wine foobar.exe" Icon=wine Terminal=false Type=Application Categories=Wine; StartupNotify=true       Replace USER and FOOBAR_FOLDER with appropriate values. So you'll be   able to locate your application in the Launcher by typing "FooBar".   This is the top answer given to a question similar to my previous one, which you can see here: , but I don't understand how shall I handle the code I just provided. I tried to copy and paste on the terminal, but it wouldn't work.  In other words, I need that same answer but more comprehensively explained and easier to understand since I don't get what to do with the code provided! Please note, I have few skills with computers. Thank you very much! :)
33400
I need to restore my documents and folders, since the installation of 14.04 reformatted my harddisk.  I can sign in to Ubuntuone, but I see no way to make it restore the files to my harddisk.
2354
I had installed some programms with Wine, but I removed Wine from my computer. Now when I browse all applications in the Unity menu, the symbols of the programms I installed with Wine are still there.  How can I remove them?
92410
Recently I uninstalled some software using sudo apt-get --purge autoremove, thinking that this would remove all traces of it including unused dependencies and configuration files. However I discovered that a configuration file was left behind in my home folder.  Is there a more powerful command which would remove even that?   Also, is it safe to delete the hidden files and folders under home, if they are merely configuration files, or are there other kinds of files?
46123
Using Ubuntu 11.10, I accidentally deleted a file that was approximately 700 MB. I tried to find it in the in following locations, but couldn't:  /home/user/.local/share /home/user/ &lt;-- there was no folder .Trash /home/user/Desktop/ &lt;-- there was no folder .Trash   So where did .Trash go in Ubuntu 11.10 onward? I use the Gnome environment.
87487
Running macOS Sierra(Version 10.12.2 16C67).  I installed  version wine-1.8.6 (through a .pkg file). I opened up a game and it worked fine.  The next day when I downloaded Origin installer, it wouldn't open. When I double clicked on it, the Wine icon showed up in the dock and said it was open, but no windows showed up. When I clicked on another program(or on the desktop), Wine closed. Now when I try to start that same game I opened when I first installed Wine, the same thing happens that happened when I started Origin installer.  When I go to the terminal and type wine {path of .exe} I got this:   I installed wine tricks using brew install winetricks and it installed fine, yet it didn't change my situation.  winecfg works properly, and so does sh winetricks.
7327
The Story  I installed wine some time ago, and after trying out some versions of Cinema 4D that were "free", I looked in the comments of the videos, and saw some people complaining about viruses. I got worried, downloaded and installed MalwareBytes, and scanned my "system". Of course, since MalwareBytes was runnning through Wine, it only scanned ~/.wine/C:. It found many viruses/trojans and I opted to delete them. I did so.  Questions:   Assuming there is any malware left, can this malware spread into my OS? Tell me the entire truth on what can happen. I deleted my entire .wine directory and am planning to uninstall wine later. I am the only user out of the three on this system that runs wine programs, but wine is installed for all. Is that enough, or must I do more? Please be specific on what I should do because I want to be 100% sure that there are no viruses.   I am sure that many others have these questions too, so please answer this question to the point.   Additional information:  Wine was installed with sudo-apt get. The exact commands can be found here:   Commands:  sudo add-apt-repository ppa:ubuntu-wine/ppa -y sudo apt-get update sudo apt-get install wine1.6 -y   I did try to install a font that was a ttf font. I tried to convert it to otf with no success. Then, I placed it in the fonts directory directly. I then saw that some people said it was malicious, and I removed it.  This question was flagged as  a duplicate of this question:  It is not the same. This question is more precise, as it specifies two scenarios involving viruses, not risks of viruses. The other question talked about Internet Explorer; this one does not mention the installation of any programs.  Note: wine was installed with sudo privileges, so does that mean it runs with sudo privileges?
114728
Okay so I'm having major issues installing/running iTunes through Wine, but I'm in major need to create (and be able to restore from) a full, complete backup for my iPhone since I'm doing a ton of tweaking to it. I don't really know what I'm doing, so there's a 110% chance I'm gonna screw it up, but hey, no one ever learned anything about technology without crashing it a good 100 times right? =P