Tuesday, February 2, 2016

How to run 'apt-get install' to install all dependencies?

I am running this in ubuntu server installation:



sudo apt-get install git-core gnupg flex bison gperf build-essential \

zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386


but I am getting this:



Reading package lists...
Building dependency tree...

Reading state information...
curl is already the newest version.
gnupg is already the newest version.
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:

build-essential : Depends: gcc (>= 4:4.4.3) but it is not going to be installed
Depends: g++ (>= 4:4.4.3) but it is not going to be installed
g++-multilib : Depends: cpp (>= 4:4.7.2-1ubuntu2) but it is not going to be installed
Depends: gcc-multilib (>= 4:4.7.2-1ubuntu2) but it is not going to be installed
Depends: g++ (>= 4:4.7.2-1ubuntu2) but it is not going to be installed
Depends: g++-4.7-multilib (>= 4.7.2-1~) but it is not going to be installed


How can I fix this?

Monday, February 1, 2016

games - How to install Flash player on Ubuntu?

Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox -
ref: Flash player security doubts - a particular online flash game still requests that I update to the latest flash player.



I've tried this online game on my laptop (Windows 8 with Flash Player 11.8) and it has no problems.



Is there a way to trick Ubuntu or this game into thinking Flash Player 11.8 is "installed"?

After installing NVIDIA drivers, I boot into a black screen [13.10]

Edit: Trying solution after solution found on these forums with the bootloader has apparently corrupted the bootloader. I missed pressing shift twice in a row and on the third attempt, the bios does not recognize a bootloader anymore. So it looks like I'm starting from scratch.


I am new to Ubuntu and I am using a 1440p & 1080p multi-monitor display setup. Using the default drivers (neuveau?), I am unable to get my display working because when I change my 1080p screen to be in portrait mode instead of the default landscape mode, my 1440p monitor goes black (It's a Crossover 27").


As a result, I assumed that the neuveau drivers won't cut it for my setup. So, I installed NVIDIA drivers for my GTX 680 using this guide: http://www.howopensource.com/2012/10/install-nvidia-geforce-driver-in-ubuntu-12-10-12-04-using-ppa/


After installation and reboot, both of my monitors are now black. I can hear the Ubuntu jingle at the log-in screen. Pressing CTRL+ALT+F1 results in a black screen with a flashing white underscore.


Using just one monitor procures the same results.


I am at a loss of where to go next.


Thanks for your help.


Edit: I decided to try running the following command (In recovery mode):


sudo apt-get purge nvidia-current

This did not resolve my issue. I still boot into a black screen.


2nd Edit: Things are getting stranger now. After attempting to uninstall the video drivers, I booted into recovery mode to try to update my system and reinstall them. After trying the networking option, Ubuntu froze there. So I did Cntrl+C and Ubuntu booted. My primary monitor was still black, but my secondary somehow worked. After logging in, my driver now says GTX 680.


So, I rebooted, and now I'm still back at the black screen on both monitors.

apt - broken packages - libg11-mesa-dri:i386

happy new year!



Not so for my PC :o)
While installing the IA32-libs my PC ran into a broken package problem.
( The system is ubuntu 12.10 - 64 bit and I want to compile 32bit targets.)




The console output is vague about this but I did get more information out of the GUI update-manager:this is the output:



"De afhankelijkheden van de volgende pakketten konden niet geïnstalleerd worden:



libgl1-mesa-dri:i386: Depends: libgcc1 (>= 1:4.1.1) maar 1:4.7.2-2ubuntu1 is geïnstalleerd"



That's Dutch for: libgl1-mesa depends on libgcc1 1.4.1.1 but 1.4.7.2 is already installed on my system.



The real problem is the inability for apt-get to overcome this because I can't perform any updates, not by the console nor the GUI update manager. So My PC is basically stuck.




I tried ; apt-get install -f, remove, autoremove, update, upgrade. and so on.



Has someone an idea how to solve this?



many thanks
rm

preferences - Indicator-Weather hangs when trying to change Location



I have always used Weather Indicator (indicator-weather) for all my weather-related needs on Ubuntu, since 10.04. I now use 11.10 and have indicator-weather installed from the Ubuntu repositories. I recently moved from New Orleans, Louisiana to a town called Central just outside of Baton Rouge, Louisiana. I tried to removed my New Orleans location and add my new one using the programs Preferences dialog. It allows me to remove my current location, and even allows me to select "Central, Louisiana, United States" by entering "Central, LA" and hitting the "search" button. But when I do that, the application hangs and goes gray and never ever updates. This is driving me crazy. I cannot seem to find how to manually change my location in any config file, although I don't know much about this app and I am not sure where it stores this info. Things I have tried so far include:




  1. Change Location as mentioned above

  2. Use the more common "Baton Rouge" location choices using the same steps mentioned above.

  3. I have uninstalled the application AND also uninstalled the dependency python-pywapi using both the sudo apt-get remove AND the sudo apt-get purge commands and reinstalling the application.

  4. I did everything mentioned in #3 and then restarted my system before re-installing.




Interestingly, after doing all of the above and then reinstalling the program, the first time I run it I am STILL greeted with my old Location settings instead of being prompted to choose an new location! I would also like to add that my wife is running Ubuntu 10.10 and she was able to change her location data with no trouble whatsoever.



The short version of this question would be: how do I change my Location in Weather Indicator on Ubuntu 11.10? Any help would be appreciated.



EDIT: I would also accept a solution that lets me re-install the application in a brand-new state so I could just add my Location instead of adding a second one or removing the first one, etc.



I can't reproduce your issue - however, some suggestions.





  • Reset indicator-weather



Indicator weather related configuration is held in an internal database (you can use dconf-editor to view in a GUI format).



Thus to reset indicator-weather you can use the following from a terminal:



gsettings reset-recursively apps.indicators.weather




  • Assign central to dconf directly



Assuming that I have correctly searched for "baton rouge" and having selected "central" you can write to the internal database directly with these values:



gsettings set apps.indicators.weather locations "{'2377529': {'google id': ',,,30554355,-91036771', 'noaa id': 'woot', 'longitude': '-91.0367706', 'yahoo id': u'USLA0510', 'latitude': '30.5543546', 'label': 'Central', 'full name': 'Central, Louisiana, United States'}}"

gsettings set apps.indicators.weather places "[['2377529', 'Central']]"


Where is my Win 8.1? Installing dual boot of Win 8.1 and Ubuntu 14.04.1 LTS on ASUS Vivobook S400CA



I am not the most experienced in installing Ubuntu, and I have heard that installing Ubuntu on ASUS Vivobook is problematic. Is anyone here has experience in doing this?



I tried to follow the instructions here - ubuntu-on-touch-screen-laptop-setting.



But at the installation type screen I don't have the option to install Ubuntu alongside Windows 8.1, I only have the following options:





  • Erase disk and install Ubuntu

  • Encrypt the new Ubuntu installation for security

  • Use LVM with new Ubuntu installation

  • Something else



What should I do?




Edit I'm re-writing this answer to match the edited question Edit



This issue is caused by UEFI Boot. The Unified Extensible Firmware Interface (UEFI) (pronounced as an initialism U-E-F-I or like "unify" without the n)[a] is a specification that defines a software interface between an operating system and platform firmware. UEFI is meant to replace the Basic Input/Output System (BIOS) firmware interface, originally present in all IBM PC-compatible personal computers. In practice, most UEFI firmware images provide legacy support for BIOS services. UEFI can support remote diagnostics and repair of computers, even without another operating system



Education out of the way, the steps to work around this issue are long, but not overly painful. Due to their length, I am going to very briefly summarize them here:


1) Backup Windows


2) Create your Installation Media


3) Shrink your windows partition


4) Turn off Secure Boot


5) Install Ubuntu


The guide has a lot of instructions here that I didn't need the last time Installed. So before I give you the link to follow, here's my caveat: If the installer gives you the option of installing alongside Windows, use that instead of this guide. If you still don't see it, then follow the guide.

All that said, here is the link: http://www.everydaylinuxuser.com/2014/05/install-ubuntu-1404-alongside-windows.html

I also recommend logging into the Ubuntu IRC channel during the install. If you have any questions, you can connect right with the community rather than having to wait for replies here. Should they walk you through different steps, please let us know what worked for you so that we can clean up this question.



~ Geary


kernel - Black screen on boot after updating libgdk-pixbuf2



I updated through the update manager about half an hour ago, it asked me to restart so I did, but now I keep booting up to a black screen that only shows the cursor.



If I press CTRL+ALT+F6, I can log in through the console, but otherwise I'm just met with a cursor and a black screen.



This is on the latest Dell XPS 13, with the i5 processor. Ubuntu 16.10.




I would appreciate any help at all! Thanks!



I've also tried booting with older kernels in boot up options but I still get the black screen.



Since you can log on with your CTRL+ ALT +F6. why not reinstall lightdm and reinstall unity desktop. The this two and give us feeds.


11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...