Unmet dependencies: nvidia-kernel-common-460 I was trying to solve an issue with my external monitor in Ubuntu 20.04 with my asus-rog
I tried the following solution, External monitor not detected on Ubuntu 18.04
sudo apt-get purge 'nvidia*'
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update
sudo ubuntu-drivers autoinstall

Now I get the following error:
The following packages have unmet dependencies:
 linux-modules-nvidia-460-generic-hwe-20.04 : Depends: nvidia-kernel-common-460 (<= 460.39-1) but 460.56-0ubuntu0.20.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

haha I just did exactly the same thing over here on my system messing around; was bored sitting here reading that the Vulkan drivers may perform better after watching a video comparing the Radeon RX 5700 XT's to the 3060 TI's and my mind started wandering off - probably from lack of sleep, plus all the nicotine and caffeine :) Anyway I had the 460 driver's up and running nicely but then started screwing around and after reading into all this stuff, Nvidia's website says to use the 430 driver for the 20 series cards?? Who knows, so then I sit here purge all the stuff I had working, put the 430 driver on and apparently it screwed up the configuration files... system kernel is still loading something off the 460 driver's, and yea.. now my computer is working but plasma's all screwed up, spitting out errors at me and games are running at like 13 FPS. Why do they gotta make this stuff so frustrating man? At least I know what's going on but hell if i know how to manually edit kernel configuration files. THAT's what got me to say to hell with WSL2 and just go 100% linux in the first place (I was watching that "Dave's garage guy" on youtube and trying to just put a straight linux kernel in WSL2 when I made a stupid typo that screwed everything up lmfao). "Aww shit, here we go again"


Apache/2.4.29 (Ubuntu) Server at Port 443 for wordpress I'm facing an error in Wordpress after installing Let's encrypt certificate in AWS on Ubuntu 18.04.

How to fix this issue?

Get solution for the issue, need to change in apache2.conf file after that it will works,

old code in /etc/apache2/apache2.conf

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

changed in to

 <Directory /var/www/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
    </Directory>

after that,
In order for Apache to understand rewrite rules, we first need to activate mod_rewrite. It's already installed, but it's disabled on a default Apache installation. Use the a2enmod command to enable the module:

$ sudo a2enmod rewrite

This will activate the module or alert you that the module is already enabled. To put these changes into effect, restart Apache.

$ sudo systemctl restart apache2

it works for me finally.

i hop your 443 port its block

login your aws and check open ports details

more info here


Can I make a YouTube Series about programs on the Ubuntu Software Center? I would like to make a video series of me touring the software center, browsing programs, and introducing others to the Ubuntu Software Center and its programs. Can I do this? I am asking because I do not want to infringe on any copyright or something of that sort.

Please go ahead and do it!

You would not be infringing on any copyright or trademark around Ubuntu. Canonical policies explain:

  You can use the Trademarks in discussion, commentary, criticism or parody, provided that you do not imply endorsement by Canonical.

Even if you were using proprietary software such as OS X or Windows to demonstrate the operating system's capabilities and express opinions about software, there would be no SWAT team coming to knock down your door. As long as you don't claim ownership of the symbols, names, logos, etc. used and created by Canonical.

Since Ubuntu is an open source OS, I think sharing information of what you know to others would be good for Ubuntu, so in my opinion you should do it.


unable to install applications from software centre. Installation failing installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_IN.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 170318 files and directories currently installed.)
Removing oem-kernel-cmdline (1.4kittyhawk7) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
postrm called with unknown argument `remove'
dpkg: error processing package oem-kernel-cmdline (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 oem-kernel-cmdline
Error in function:

Now We try method 2

We are try remove & reinstall Software center.

To remove Software Center:

1. sudo apt-get remove software-center

sudo apt-get autoremove software-center

To re-install Software Center:

sudo apt-get update
sudo apt-get install software-center

or you can use single command for remove & reinstall Software Center

sudo apt-get --purge --reinstall install software-center

Now this will work & after this method work vote up the answer.
Best of luck.

First of all run this commands on terminal

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get autoclean

This commands will try to fix broken packages if any and also install required library files if missed.

After that install Synaptic Package Manager, Using this  you can add/remove/update/fix-broken packages very easily.

Install Synaptic Package Manager by using following command

$ sudo apt-get install synaptic

This will help you
best of luck.


Cant find terminal app in Ubuntu store I got my bq Aquaris E5 today and I like it, but I cant find the terminal. I read on this site that I need to install the terminal app. But I cant find it in the store. I tried to change the phone into developer mode, but to no effect. Any suggestions?

This is a screenshot of the search for "Terminal"

It turned out that I had an old version where the store did not have the terminal app, just as Wayne_Yux17 pointed out.

I connected to wi-fi and then went to:
system-settings -> System -> Updates Then wait for the update to download.
Then just press on the package to install it.

When the update is finished, the terminal will appear in the store.

In the 'Ubuntu store', click on the magnifier icon (up right corner), enter 'terminal', wait a couple of seconds and here it comes:

Terminal
Ubuntu Core App Developpers
LIBRES 4.6

Further, just select and install it.


How to resolve that error when I try to install build-essential? I can't install build-essential on my laptop :

It shows error:

The following packages have unmet dependencies:
build-essential : Depends: g++ (>= 4:4.4.3) but it is not going to be installed
Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

At the very end of that list of unmet dependencies you may find that it lists this tidbit

Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Try typing the following into the command line

sudo apt-get -f install

It should then prompt you with the packages it will be installing together with

Do you want to continue [Y/n]?

you should be able to move forward after that with

sudo apt-get install build-essential

The following packages have unmet dependencies:
 build-essential : Depends: g++ (>= 4:4.4.3) but it is not going to be installed
                   Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
This error is caused by error in your source list, you need edit this file:

    root@debian:~# nano /etc/apt/sources.list

Remove conflict sources and then add this line:

    deb http://ftp.debian.org/debian/ stable main contrib non-free

then:

    root@debian:~# apt-get update

    root@debian:~# apt-cache search build-essential --names-only

    build-essential - Informational list of build-essential packages

    root@debian:~# sudo apt-get install build-essential

that's all...regards...

Visit http://forums.debian.net/viewtopic.php?f=30&t=84184


"Install this third-party software" - safe for my system or questionable? I am installing Ubuntu atm and it asks me if I want to "Install this third-party software."

I assume it is safe to check this box and allow it to do this, but before I blindly do so I thought I'd ask. I searched google, and surprisingly nothing came up.

That is up to you and whether you trust the developers of the third-party software. It simply letting you know that it is third-party software. It is not saying it is safe to install it, nor that it is unsafe to install it.

I would be surprised if there were any issues with it at all, but I'm certainly not going to guarantee that.

When you add a PPA repository you have to do it with add-ppa-repository "ppa name" command, example:

sudo add-apt-repository ppa:pidgin-developers/ppa

If you already added it and see a message indicating a missing key number you can run:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com "key"


How to run init.d script directly? I'm trying to run /etc/init.d/mydaemon status but the systemd gets in the way with its own wrong status that can rely on pid files in case of SysV scripts (that init.d script uses no pid files).

How it's doing that and what is a workaround?

Build an upstart job, it can probably solve your problem. It worked for me. You can achieve that as follows :

Create      /etc/init/myjob.conf

Add the following entries to the file

description "my Job"
start on startup
task
exec /path/to/my/script.sh

This is just an example. You can give whatever name you want, and the path leading to your script.


How to start terminal in full screen? When I open a terminal using CTRL+ALT+T in Unity, I would like this window to be automatically maximized, rather than to have to additionally hit ALT+SPACE and the 'X' key to make the window that contains it maximized.

If my memory serves me right, I do remember that there used to be a maximize mode that we can set in preferences, but I can't seem to find it now. Any ideas?

@Bhargav was close to what you need to maximise the window - you just need to use big numbers.

Open a Terminal
Select Profile Preferences from the Edit Menu.
Tick Use custom default terminal size and enter a default size that is too large for the screen e.g. 240 columns and 100 rows.
Click close then open a new Terminal by clicking the icon OR pressing Ctrl + Alt + T

The new terminal window should be maximised.

Can I add that your question is a bit vague, the title asks for full screen (I take that as fills the entire screen, with no panels or unity bar visible) but the actual question asks how it can be automatically maximised (fill the desktop space leaving panels and unity bar visible) which are two different request in my book.

Based upon advice I was given here:
How to make terminal start maximized?

Drag the title bar of the application to top of window.


How to disable auto-startup of Microsoft Teams in Ubuntu? When I boot up my Ubuntu 20.02 laptop, MT (Microsoft Teams) always starts.
Since I would like to avoid this, I went to the default program "Startup Applications" and removed the tick for MT.
Though this works for two or three boots, afterwards, I am still stuck with the same problem.
Interestingly, the tick for MT in Startup Applications is still there, even though I removed MT from the list.
Help would be appreciated!

The only method I have found so far to solve the problem is configuring settings in Teams:

Right click the Teams icon on the system tray
open Settings
uncheck Autostart

The following methods do not work.

If you disable Teams as a startup application, it will enable itself the next time you open Teams.
If you restrict the write access to autostart folder only to superusers (so that Teams cannot add itself to startup applications), Teams will refuse to open and show errors.

You might find "Startup Applications" in Tweaks. If then, you can remove there.


Error when booting 12.10 after upgrade Since upgrading to 12.10 from 12.04, I get the following error every time it boots:

 /scripts/init-premount/devpts: line 21 mountpoint not found

It does, however, skip over that and continue to boot.

I can't find that location, however. Any ideas?

I don't know what that exactly happens, but that /scripts/init-premount/devpts is probably inside the initramfs. To locate the real file, you can do locate init-premount/devpts. Posting the problematic line will help resolve the problem.

Note: I don't have that file here on my machine (12.04), but I do have the folders /etc/initramfs-tools/scripts/init-premount and /usr/share/initramfs-tools/scripts/init-premount, but I will soon upgrade and look again.

Sorry, I can't comment, so I do it now via an answer.

Update: you can also try sudo update-initramfs. It might just fix it for you.

You made a bad upgrade . What I can advise you is to reinstall Ubuntu 12.04 And keep it or Install directly 12.10 without making the upgrade from 12.04 to 12.10. if you're not sure how to do it and know how to do it .


Kernel panic after update to 4.4.0-108-generic Today I got what I presume was the update that should take care of Spectre and Meltdown. That didn't go very well. What do I do now?
See screen photo.

I can't boot the 4.4.0-108-generic kernel because of a kernel panic. I'm running 16.04 on an Intel Core i5-4670K CPU @ 3.40GHz × 4.

Do not install 4.4.0-108-generic on Xenial! It breaks boot/reboot/shutdown/suspend functionality!

Install 4.4.0-109-generic (see USN-3522-3 for details)!

Reboot to the last working kernel and remove 4.4.0-108-generic:

Press Shift between UEFI/BIOS and login-screen to enter GRUB
In GRUB select Advanced options for Ubuntu and select Ubuntu, with Linux 4.4.0-xxx-generic (where xxx < 108)
Login to the system and remove this buggy 4.4.0-108-generic and install 4.4.0-104-generic instead.

sudo apt-get purge linux-headers-4.4.0-108 linux-headers-4.4.0-108-generic \
linux-image-4.4.0-108-generic linux-image-extra-4.4.0-108-generic \
linux-tools-4.4.0-108 linux-tools-4.4.0-108-generic
sudo apt-get autoremove
sudo apt-get install linux-headers-4.4.0-104 linux-headers-4.4.0-104-generic \
linux-image-4.4.0-104-generic linux-image-extra-4.4.0-104-generic \
linux-tools-4.4.0-104 linux-tools-4.4.0-104-generic

As of 2018-01-10 18:00 UTC, the 4.4.0-109-generic kernel seems to be distributed on mirrors.

But if you want you can select Main server (http://archive.ubuntu.com/ubuntu).
You can switch to it from software-properties-gtk / software-properties-kde.

You can install 4.4.0-109-generic with the following commands:

sudo apt-get update
sudo apt-get install linux-headers-4.4.0-109 linux-headers-4.4.0-109-generic \
linux-headers-generic linux-image-4.4.0-109-generic \
linux-image-extra-4.4.0-109-generic linux-image-generic \
linux-tools-4.4.0-109 linux-tools-4.4.0-109-generic linux-tools-generic

You can install the latest patch successfully if you boot with an older kernel (I went back about three releases) then run Ubuntu's all of Ubuntu's advanced options "system cleaning" tools including fsck.  There apparently is something in the earlier releases that must be "fixed" before the patch can be installed successfully.


Setting Workspaces in Gnome without activating gnome panel (and workspaces applet) I'm using Avant Window Navigator and don't have any gnome-panel. But, I wanna resize my workspaces from 4x1 to 2x2. But in the help and other documentation, to do this, I must right click in Workspaces applet in gnome panel. Can I do this without activating gnome panel?

You can configure your workspaces through CompizConfig Settings Manager (ccsm)

sudo apt-get install compizconfig-settings-manager

It's placed in System > Preferences > CompizConfig Settings Manager.

You will find the setting under General Options>Desktop Size.

Don't know if indicator-workspaces will is what you are looking for you need to install i from a personal ppa.

in terminal type

sudo add-apt-repository ppa:geod/ppa-geod

then

sudo apt-get update && sudo apt-get install indicator-workspaces

it will be in your accessories menu.

Hope this helps


I can't get access to NTFS partition : This location could not be displayed I have a problem to open the NTFS partition, this problem appeared recently, I need help please.

fix ntfs partition with this commandline app

sudo apt-get install ntfs-3g

and use it like this

ntfsfix /dev/hda6

its gonna fix problem

edit

for find you partition path use disk app like this

partition path


How can I install a .bin file? I want to update Acrobat Reader for Firefox, but the download has the .bin extension. How can I install it?

Go into a terminal and issue the following command in the directory where the bin file is,

chmod a+x name_of_file.bin

Then run it by writing

./name_of_file.bin

If you get a permission error and/or you're dealing with an installer that applies system-wide changes you might have to launch your application with root privileges:

 sudo ./name_of_file.bin

First of all go to location of file

like
if your file is your downloads then open terminal and follow below steps

acer@acer-TravelMate-P243:~$cd ~
acer@acer-TravelMate-P243:~$cd /home/user/Downloads

then change the persmissions of the .bin file to execute by terminal

acer@acer-TravelMate-P243:~$chmod a+x ./filename.bin -R

now you can run that file through  terminal

acer@acer-TravelMate-P243:~$./filename.bin


Cannot enter phpmyadmin as root (MySQL 5.7) I'm using Ubuntu desktop 16.04 (upgraded from 15.10).

I had installed phpmyadmin from by apt-get install phpmyadmin. It works if I go to localhost/phpmyadmin but I cannot log into it as root.

I have searched a lot for it. I have found many sources in which they suggest to alter /etc/phpmyadmin/config.inc.php and replace the user and password with 'root' and '' (empty for password). But my config.inc.php is different from theirs. For example in my file, there is no line for user and password and it seems it gets it automatically from another file which is /etc/phpmyadmin/config-db.php. Despite this, I have changed the user and password in that file, but now I get this error:

#1698 - Access denied for user 'root'@'localhost'

What I should do?

Phpmyadmin Version: 4.5.4.1deb2ubuntu1
mysql  Ver 14.14 Distrib 5.7.12, for Linux (x86_64) using  EditLine wrapper

MySQL 5.7 changed the secure model: now MySQL root login requires a sudo.
I.e., phpMyAdmin will be not able to use root credentials.
The simplest, safest and permanent solution will be create a new user and grant required privileges.
1. Connect to mysql
sudo mysql --user=root mysql

2. Create a real password
In the below steps I'll use <please_replace_this> as a sample password. PLEASE, REPLACE IT BY YOUR PASSWORD! DON'T USE <please_replace_this> AS PASSWORD!
3. Create a user for phpMyAdmin
Run the following commands (replacing <please_replace_this> by the desired password):
CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY '<please_replace_this>';
GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

If your phpMyAdmin is connecting to localhost, this should be enough.
4. Optional and unsafe: allow remote connections
Remember: allow a remote user to have all privileges is a security concern and this is not required in most of cases.
With this in mind, if you want this user to have the same privileges during remote connections, additionally run (replacing <please_replace_this> by the password used in Step #2):
CREATE USER 'phpmyadmin'@'%' IDENTIFIED BY '<please_replace_this>';
GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

5. Update phpMyAdmin
Using sudo, edit /etc/dbconfig-common/phpmyadmin.conf file updating user/password values in the following sections (replacing <please_replace_this> by the password used in Step #2):
# dbc_dbuser: database user
#       the name of the user who we will use to connect to the database.
dbc_dbuser='phpmyadmin'

# dbc_dbpass: database user password
#       the password to use with the above username when connecting
#       to a database, if one is required
dbc_dbpass='<please_replace_this>'

if you install MySQL separate stop it by this command below
    sudo /opt/lampp/lampp stop
    service mysql stop
    sudo /opt/lampp/lampp  start


Script to combine movie audio tracks in order to learn a language I would like to build a special script to learn English from a movie (dvd, mkv ...). I would like to extract the audio part in my native language then in English and the subtitles with the timeline. The subtitles will allow me to know when the actors speak.

From there, the native and English audio tracks are cut out. Then re-assembled to have for each sentence:

Sentence 1: The track in native && pause 2 seconds && the track in English && Pause 4 seconds.

Sentence 2: The track in native && pause 2 seconds && the track in English && Pause 4 seconds

etc.

How should I proceed?

If you want to learn a new language there is an easier method: play the English audio and display the subtitles in your native language.

That's how I learned (and am still learning):

Français
English
Deutsch
Afrikaans
по-русски
...

I haven't tried yet but I've been meaning to check out Subs2Srs. Maybe it can help you. On the site it says:

subs2srs is a small utility that allows you to create Anki import files based on your favorite foreign language movies and TV shows to aid in the language learning process.
This utility will parse through a subtitle file, extract the dialog and timing information, and then use that information to generate audio clips, snapshots, and video clips for each line of dialog.

You might not want Anki files but it might get you close enough. Sorry, I think it needs Windows but maybe you have that available.


Left click button on touchpad not working after update. Any help? My left click button on touchpad is not working at all, it happened presumably after an update. First I assumed it was an hardware problem but it's not, as it worked flawlessly when i inserted the live DVD to verify. The other features are working as expected.
any solutions ?

I switched to the kernel to 3.16.3. The trouble is gone.


I don't know my passphrase I have just installed Ubuntu and I am not sure what my password is. I don't really know that much about computers.

Do this, boot into recovery-mode. to do that, press shift at the purple screen. Then a menu should come up and from there select recovery-mode. Now a ton of text will apear, but then another menu will apear. From there select root command line or something like that. Then I think you can just type:

passwd <username>

and then type in your new password, when you're done, type

reboot

and boot normally.

If you run into an "Authentication token manipulation" error, then you first need to type:

mount -o remount,rw /

Then do the passwd command.

Click on the Ubuntu icon
Type in UXTerm & select
Type passwd into the box
Now enter a new password & press enter
Re-enter your new password

You have now changed your password.


Why qemu-system-x86 takes 100% of my CPU? I've changed my old laptop with a new one but I don't understand why using on both virt-manager the qemu-system-x86 on new one takes 100% of CPU when run a vm, while on old one not.

The command:

lscpu

has this output:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 69
Stepping:              1
CPU MHz:               754.000
BogoMIPS:              5187.74
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              4096K
NUMA node0 CPU(s):     0-3

While in my old PC it just uses 15%-30% of the CPU. I've also actived the kvm from the BIOS but nothing changes: it continues to use 100%.

The top command gives me:

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
3410 libvirt+  20   0 3641892 902428  10332 S 101,4 11,2   1:03.36 qemu-system-x86

How should I proceed?

Have you tried to make sure you use the proper accelaration for qemu?
Such as:

qemu-system-x86_64  -machine accel=kvm [...]

This switch could make your computer use hardware virtualization
(cpu usage drops to negligible then)

I've resolved that modify an option on BIOS,after that now CPU uses just 20%.


How do I install Oracle JDK 6? Most of the software is not thoroughly tested with Java 7 and I would like to install Oracle's JDK 6.0 on Ubuntu 11.10.

Could someone please provide me the instructions for the same?

Due to license issues Ubuntu will no longer distribute Oracle's JDK and JRE. Also previous versions supplied on PPAs suffer from security issues are are not recommended to be installed on any Ubuntu system.
There are no more supported java releases from Ubuntu - Ubuntu officially supports OpenJDK and OpenJRE implementation of Java which is the base for Oracle's own implementation.
To install the OpenJDK & OpenJRE refer to this Q&A.
The instructions below provide a guide to install the official Oracle JDK 6.  You will need to regularly update this manually to ensure your installation maintains recommended security and stability fixes.
Install the Oracle JDK 6

Oracle JDK 6 is no longer maintained. It is not updated with the latest security patches and are not recommended for use in production.
You can however still download them from the Oracle Java Archive

Oracle themselves have the official guide to install their JDK - below is based upon those instructions.

Download the 32bit or 64bit Linux "compressed binary file" - it has a ".bin" file extension

Give it permissions to execute and extract it
chmod a+x [version]-linux-i586.bin
./[version]-linux-i586.bin

During installation it will ask you to register - press ENTER.  Firefox will open with the registration page.  Registration is optional.
JDK 6 package is extracted into ./jdk1.6.0_x directory, for example ./jdk1.6.0_30.
Lets rename it:
mv jdk1.6.0_30 java-6-oracle

Now move the JDK 6 directory to /usr/lib

sudo mkdir /usr/lib/jvm
sudo mv java-6-oracle /usr/lib/jvm
switch to Oracle JDK 6
webupd8.googlecode.com hosts a nice-easy script to help with this.
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/webupd8/update-java-0.5b
chmod +x update-java-0.5b
sudo ./update-java-0.5b

don't worry - 0.5b refers to the script version - not the version of java!
An alternative to this is to use the webupd8 ppa and the update-java package.

Finally test the switch has been successful:
java -version
javac -version

These should display the oracle version installed - 1.6.0_30
Install the Firefox/Chrome plugin
In a terminal:
mkdir ~/.mozilla/plugins

Remove the IcedTea plugin, if it has been installed.
sudo apt-get remove icedtea6-plugin

Remove a former version of the Java plugin (may or may not be present)
rm ~/.mozilla/plugins/libnpjp2.so

Now you can install the plugin, by creating a symbolic link (you tell Firefox, where the plugin is located).
(32bit)
ln -s /usr/lib/jvm/java-6-oracle/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins/

(64bit)
ln -s /usr/lib/jvm/java-6-oracle/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Confirm that the JRE has been successful by using the official oracle website.

Linked Questions:

How do I install Java?
How do I install Oracle Java JDK 7?
How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

I used the following instruction by downloading the jdk binaries directly from Oracle. The instructions apply for jdk6 also.


Updating to linux-image-3.2.0-26-generic occupies all disk space I just ran a normal update through the update manager that wanted to update me to linux-image-3.2.0-26-generic. The installation paused halfway with a message that the root was full. I checked the disk usage, and noticed that one of the newly installed files:

/lib/modules/3.2.0-26-generic/modules.ccwmap took up 63GB(!). Compared to the previous version, /lib/modules/3.2.0-24-generic/modules.ccwmap, that took up only 4KB. It seems like something went awfully wrong!

As mentioned the update was paused when i ran out of disk space. There is no option in the update dialog to cancel or perform rollback on the update. Is it asking for trouble to kill the update manager?

Any ideas as to what went wrong, and what I can do to remedy it? It's only minimal how much space I can free on that partition (without deleting the above mentioned file).

If it is any help, the update was paused after this:

Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-26-generic /boot/vmlinuz-3.2.0-26-generic

OK my system is back in a healthy state.

First: "Is it asking for trouble to kill the update manager". Yes, it definitely is!

I couldn't free any disk space manually, and I couldn't remove any packages while the update manager was in progress, so I decided to terminate update manager and reboot the system.

The system couldn't boot normally but in recovery mode I could open a root command line. From here I could see that the above mentioned file was now only 4KB. I have no idea what happened in between or why it became 63GB in the first place.

In Recovery mode only the Root prompt worked, any thing else was just hanging. To get the system up and running I did:

In the GRUB menu edit the recovery mode to mount / as RW.
Enter recovery mode.
Go to the root command line.
Fix packages using: dpkg --configure -a.

So the only question remaining is why /lib/modules/3.2.0-26-generic/modules.ccwmap took up 63GB during installation.

You can solve this problem by free up disk space. You can use a tweak tool "ubuntu-tweaks",  to do that. It's easy. To download ubuntu-tweaks...type in terminal

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get clean && sudo apt-get update
sudo apt-get install ubuntu-tweak

After installing run it from system setting. Click on "Start Janitor". Then Select and clean. Do not delete old kernel. If you get enough space then update your system by typing

sudo apt-get upgrade

If upgrade is successfull then you can clean old kernel.


Can't open link in PDF I'm using the default PDF viewer in Ubuntu 16.04 on a Dell XPS 13 9350. The link is a reference in a technical paper.

I get the error "Unable to open external link, Failed to execute child process "/opt/google/chrome/chrome" (Permission denied)"

I tried this solution without success: https://askubuntu.com/a/693663/657222

I was facing the same problem with firefox as default web browser , made chrome my default browser and it worked . try changing your default web browser .


How to Search for Files Recursively into Subdirectories I am trying to look for all XML files in a particular directory and all sub-directories (recursively) inside it.

ls -R *.xml is only listing files in the current directory. I am quite sure, the sub-folders themselves have several .xml files, but none are showing up.

Is this a configuration issue?

You can do it with find only:

find . -name '*.xml'

. is the current directory. If you need to search in another directory, replace . with the directory path.

Inside the Gnome Filemanager you can click on the magnifying-glass icon (in the top-right usually) and then start typing to search in the current folder.
For some people (me) this is much easier that using the command-line.


How can I run "apt-get install" in the background? When I try to install a package, for instance nsnake, with the command  sudo apt-get install nsnake &, the process immediately stops. I can bring it to the foreground and enter my sudo password, pause it (with Ctrl-Z), and send it back to the background again. But then the shell will immediately pause the process, e.g.,

katriel@caseylaptop:~$ bg
[2]+ sudo apt-get install nsnake &
[2]+  Stopped                 sudo apt-get install nsnake

Is it possible to install packages in the background? I may want to do this while installing large packages on a computer I'm SSH'ing into.

Yes, sure.

Perform your apt-get command with fancy things around it

sudo bash -c 'apt-get -y install guake >/dev/null 2>&1 & disown'

Part explanation:

The sudo bash -c part spawns a new bash process, and runs apt-get -y install guake >/dev/null 2>&1 & disown inside that new shell.
These commands are then run inside the new subshell:

apt-get -y install guake: The main apt-get command you want to run.

>/dev/null 2>&1 pipes stdout and stderr to /dev/null.

& disown disowns the preceding job and exits the subshell.

It's a workaround, but first run anything with sudo, e.g. sudo ls. Your sudo authorization will be remembered for a while. Then you can just run sudo apt-get -y install nsnake & and you won't be asked for a password second time (unless some time has passed and authorization has expired).


Syncing apt-get installations between multiple computers Is there a way to synchronize my installations (and removals) between multiple PCs?

Preferably with dropbox - since I'm already using that to keep my files in sync.

I thought of an alias for the apt-get install and apt-get remove commands that stores the parameters to a file (one for install, one for remove) and another command that reads all the entries in the file and executes the respective command. Is this a realistic approach?

I don't know if there is a better way (there probably is), but depending on the scale you need, you could use aptitude's search feature for part of the machinery. It lets you search for packages matching a pattern. So, aptitude search '~i' gives you all installed packages

We need to go a step further, though. The packages manager likes to know which packages were directly requested by you and which ones were just pulled in because of other packages. Without that information, ugly stuff can happen. So, we can expand on that search pattern to select packages that are not automatically installed: aptitude search '!~M ~i'

The search feature is covered in some detail in Aptitude's reference manual.

Now, you have your list of packages to install. You can format the output as necessary by passing the -F flag to that command, like -F '%p' to get a list with just package names.

For example, you could run this on machine 1:

aptitude -F "%c %p" --disable-columns search '!~M ~i' | awk -F " " '{ print "apt-get -y install " $2 }' > aptshell.sh

Then copy the newly created aptshell.sh file over to machine 2 and and use this command on machine 2 to run it there:

sudo sh aptshell.sh

Then repeat the process, with the original machine 2 as the new machine 1, and the original machine 1 as the new machine 2. Now each machine has all the packages that were formerly only on the other.

You won't be able to use dropbox to sync package installs.

Synaptic does have a way to save a package download list, but I'm not sure it handles the case of "everything that's ever been installed" rather than just "these are the packages I want to download this time"


How i can install wordpress & joomla in ubuntu 13.04? I am new in linux. I already install lampp server with php my admin in ubuntu 13.04. But I can not install any cms like wordpress, joomla & cannot access from browser address bar. Please help me.

Install Joomla!

Easiest way to install Joomla is Bitnami-Joomla! stack.

To install joomla! follow these steps;

cd ~/Downloads

sudo wget -c http://downloads.bitnami.com/files/stacks/joomla/3.2.0-0/bitnami-joomla-3.2.0-0-linux-x64-installer.run

sudo chmod +x bitnami-joomla-3.2.0-0-linux-x64-installer.run

sudo ./bitnami-joomla-3.2.0-0-linux-x64-installer.run

Then the Installer Setup will load and you just need to proceed with it !

I too am new to linux. I have a virtual Ubuntu LAMP server running on Windows 7 host using VM VirtualBox. It is the first time i have ever setup a linux based web server. After installing Ubuntu 12.04 i decided to create a second virtual server using Ubuntu 13.10. Based on the problems i am having with release 13.10m my advice to you for now is...

go back to Ubuntu desktop 12.04.

I found installing LAMP and Wordpress on that version very easy. I had a few permissions problems to sort out in Ubuntu 12.04 after the install but it all went reasonably well.

Using tasksel as (outlined in wiki) for 13.10 wasted hours of my time...i ended up starting over with a fresh Ubuntu OS and installing LAMP components separately using synaptic. I got it first go this way. However, i for the life of me cannot get ftp to work with release 13 (even though its easy to get working in Ubuntu 12)


Ubuntu 12.04 Booting Issues I am almost on the verge of tears :(
Though not a techie, did contribute towards translating ubuntu help ...once upon a time, when i had the free time

have been a great fan and propagator of Ubuntu for the last 8 years !

presently running/using Ubuntu 12.04
today i accepted the automatic updates
however, instead of restarting the computer i just used the normal shutdown as i was running short of time

back from office - i start the computer only to get the 'grub' prompt

i am at a total loss of what to do and backup/restore my files
booted thru the 'live' disk
...but still unable to access files from the computer HDD as it says
that i do not have permissions to read those files :(

PLEASE PLEASE HELP ME
else after this catastrophe i am at a total loss , as to which OS to trust !!!

Thanks & Regards
Sumit D Garg
India

I am not a pro but can help.

Ubuntu have two sections.
One is of FileSystem which can be accessed by a admin.
Second is FileSystem/Home//

In this second you will be able to access Documents/Downloads/Music/Pictures/Videos which have permissions to be access by all. Unless you have changed the permissions.

So with help of LiveDVD or Bootable USB, you should be able access those files.
Copy to external drive and get all your data back.

Another way to copy directories or files is via terminal.
cp

1). First you obtain a live cd .

2). Then load with that os.

3). Open the "Terminal" .

4). Install boot loader in the primary disk that contain your lost partitions.

5). Then use the command  "update-grub"  to fetch all the partitions details . (Before that make sure you mount all the partitions )


Font too small in Chrome URL address The font in Chrome is fine except the url address which looks really tiny. I just switched from Gnome to Ubuntu 15.10 and Chrome looked just fine in Gnome.

Does anyone know what is going on ?

See this picture of Chrome:

Tabs' and pages' font looks fine and readable.

Actually, that's the new chrome, ever since v50 update it's like that. Nothing to do with Ubuntu.

Reinstall Chrome and restart your PC. Everything should work fine. Just a small glitch,  nothing else. Make sure to remove it completely and reinstall from original PPA.


How to partition my drive? OK I have installed Ubuntu 13.10.  I have my files on a hard drive.  Now  I want to put them back on my computer but I am nervous.  I have  already erased the drive.  (I  thought it would just replace windows and leave my partitioned drive (D)  reserved for files alone.  It didn't.  So I would like to partition my drive and use one for my  files the other for  the OS.  Like I had before.

Usually, the best is to partition the drive during install, or, in your case, leave the partitions as they are and install Ubuntu on the partion where windows is (replace it).

By default, Ubuntu uses the whole disk for installation. In your case you should have done the installation steps untill you can choose "installation type" and choose "something else" there. Then remove the windows partition and create a swap partition of, let's say 1GB and an ext4 partition to install the system on (mountpoint /).

To make the existing data partition available in the newly installed system, select it (in the same window) and choose "Change" (next to +-); keep the same file system as it already is and give it mountpoint /data or something you like. Do NOT format the partition! That way it would have been as you planned.

In this situation you can choose: do a reinstall and a repartitioning, or just copy your existing data to /home/"yourname". You could of course resize the partition to be able to create your data partition, but it is more "clean" to reinstall; you just installed Ubuntu and probably did not do too much work afterwards. All should take no more than just 30 minutes.

here are a few links to screenshots:

choose "something else"

remove existing partitions:

create new partitions (in your case somthing like 1x 20GB for Ubuntu, 2gb for swap, the rest for /data (the picture shows adding the swap partition)

Start with the system partition, mountpoint /, then the data partition, /data, and finish with the swap partition. If you do it like that, Ubuntu will set the "type of the new partition" automatically correct.

and ready to install:
`

Use G Parted Partition utility
Install this utility from the software center. You can easily create the partition of your   drive.


Where are error messages of failed application starts? I created a simple desktop entry for all users /usr/share/applications/pycharm-foo.desktop

[Desktop Entry]
Name=PyCharm foo
Icon=/usr/share/pixmaps/python2.7.xpm
Exec=pycharm-wrapper foo
Terminal=false
Type=Application
Categories=Application

The application gets found via windows-key (launcher/dash).

But if the application fails with a message on stdout/stderr, then I would like to look at this message.

Where can I find error messages of failed application starts?

This question is probably a duplicate of:

capture stdout and stderr of all GUI programs?

There are two answers there:

Check the contents of ~/.xsession-errors log and,
Redirect output when calling command: command >~/log/command.out.log 2>~/log/command.err.log

Also if the process ID is known look at it's file descriptor 1 for stdout and 2 for stderr. This is described in detail in Unix & Linux:

Where does the output from an application started from the window manager go?

To briefly summarize the top-voted answer:

lsof -p1234 | awk '$4 ~ /^[12][^0-9]/'
ls -l /proc/1234/fd/[12]

Of course the most common method is to simply call the GUI from the command line and your terminal window will show warning and error messages:

$ zenity --info --text "Hello World"
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Honestly what I would do is just use the following:

sudo su root

updatedb

cd /var/log

grep pycharm * > results.txt

cat results.txt

This should tell you which files where pycharm is mentioned in the logs then from that you could even filter further with something like:

cat results.txt | grep *error*

Maybe use fail or die instead of error to try to narrow down the results.


How to reinstall Grub on Ubuntu 20.04 installed on external hard disk I had Ubuntu 18.04 and Windows 10 installed on UEFI mode on my pc. I tried to install ubuntu 20.04 to my separate external hard disk connecting it to my pc which already had win10 and Ubuntu 18.04.

After the 'successful' in installation the grub of my internal hard disk broke. It shows grub>

If I connect the external hard disk it again works fine. I can also boot to windows by choosing it from boot options menu.
My ubuntu root partition is on sda6
efi partition on /sda1

Thanks

You can use repair boot, it has an option call : "boot reinstall" and it use a graphical interface or you can use command line using grub wiki


How do I scan for Wireless Access Points? In Ubuntu 11.04 I used InSSIDer to scan the available APs and sort them by signal strength.

Unfortunately the program seems to be broken in Ubuntu 11.10, and

iwlist wlan0 scan

doesn't return anything meaningful.

What options do I have to scan for available Wireless Access Point, possibly with a GUI?

sudo iwlist wlan0 scanning | egrep 'Cell |Encryption|Quality|Last beacon|ESSID' should help.

It's the combination of sudo (run as root, do privileged operations), iwlist wlan0 scanning (produce some output on STDOUT), the pipe symbol "|" (connecting STDOUT of the command(s) to the left to the STDIN of the process on the right), and an egrep command with a "single quoted" (to prevent the shell from interpreting the "|" characters) Regular Expression to filter STDIN. See man bash, man sudo, man iwlist, man egrep, and man re_format for details.

ALWAYS do man whatever (as above) BEFORE you execute a command string from someone else. Self-education is much safer than blind trust.

iwinfo wlan0 scan

wlan0 is you wireless interface

the result like below list
...

Cell 06 - Address: F0:B4:29:50:76:0C
          ESSID: "Xiaomi_760B"
          Mode: Master  Channel: 1
          Signal: -38 dBm  Quality: 70/70
          Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP)
....

the command will return encryption info

system : openwrt 15.05


How do I set up my Facebook account in Pidgin? Can anyone provide me a walkthrough of how to set up Facebook on Pidgin?

You need facebook username to use with pidgin as well as empathy. Select protocol to facebook in pidgin add account

On username section enter just username i.e. facebook.com/USERNAME will take you to your facebook public page. If you don't have one you should get it.

See the following link for instructions:

https://www.facebook.com/note.php?note_id=371950911048


Out of date Skype in software center I've enabled the Canonical Partners sources, but my software centre (or apt-cache show skype) both only show skype 4.2.x, rather than the current 4.3.x

Sources such as this Ubuntu Handbook Article imply that 4.3 should be available through software centre.

I've run apt-get update and upgrade, so I think I'm all up to date.

I know I can install manually from the downloaded .deb from Skype's website, but why is my software centre out of date, and how can I get the latest to show up?

I'm running 14.04 LTS.

EDIT (from comments):

running: apt-cache policy skype yielded:

skype:
 Installed: (none)
 Candidate: 4.2.0.11-0ubuntu0.12.04.2
 Version table:
    4.2.0.11-0ubuntu0.12.04.2 0
        500 http://archive.canonical.com/ubuntu/ saucy/partner amd64 Packages

You added the partner repository for Ubuntu 13.10. That was wrong.
It can be fixed this way:

Run in terminal

sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install skype

This will install the correct version.

Or you can got to System Settings -> Software & Updates and fix it there.

Remove the old Skype version

sudo apt-get remove skype skype-bin:i386 skype:i386
sudo apt-get install sni-qt:i386

Remove the old Skype folder

rm -rf ~/.Skype

Enable MultiArch if you are running 64-bit Ubuntu

sudo dpkg --add-architecture i386

Since you have already enabled Canonical Partners, run the update.


Linux screen program behaves strangely when moving cursor up and down while viewing a file I'm trying to use the Linux program Screen to code on my Ubuntu laptop but its behaving really strangely.  When i open a file, the file looks like it should but as I move down to the bottom, brackets appear in strange places.  These brackets seem to match the bracket placement of the line before it.

Here's a screenshot of my cursor at the top:
Cursor at top

Here's a screenshot once its reached the bottom:
Cursor at bottom

Notice all the extra brackets everywhere?  There also seems to be two separate line counters in the bottom right hand corner.

Another weird thing is that my cursor is limited in its movements.  ON line 3 my cursor can only go as far as the 1st closed bracket, as if it was on the line above it.

Anyone have any idea whats going on here?

EDITS:

I tried to use tmux but I got the same issue.

Should also mention I don't have a .screenrc file.

I've seen a similar issue on Cygwin, and one work-around is to resize your terminal window after starting screen.

I don't know why this happens, but screen misreads the number of lines in the terminal on startup.  If you re-size your terminal after that, the issue is corrected for that session.

In your screenshots the terminal is maximized.  Quit out of Vim and type the following:

tput lines

This will tell you the number of lines screen thinks you have...

Now reduce the terminal size and re-maximize it, then re-run the command:

tput lines

Are you getting the same answer?

1. It looks like you're using gnome-terminal. Try using xterm and see if the problem goes away. I'm not saying switch to xterm (okay, I am), but just see if that's where the problem is. If you're already using xterm, try gnome-terminal, or rxvt, or whatever.

2. Try reset ; vim your-file.html

Try cp /usr/share/doc/screen/examples/screenrc ~/.screenrc and restarting screen.


How to enter a directory with the 'cd' command if it has 700 permission and is not owned by me? I tried to use sudo cd name_of_dir but am getting the error message:

sudo: cd: command not found

Is there any other way to enter a directory owned by another user which has 700 permission?

sudo cd won't work because the cd command is built into the shell. So you are saying become root and then run this command. You become root and then the command after sudo is searched for but there is no cd command to find.

The method to use is to switch to the user that owns the directory. Permission 700 is meant as "owner can read, write and execute".

So if root owns the directory sudo -i, password and then cd {dir} is the only correct method. If someone else owns the directory you can still use the 1st method but can also change to that user with su {username} and then use cd as that user.

As far as the to su or not to su debate,  I think it's silly. su is against the religion of Ubuntu and it's not something to do carelessly.  It's amazing what an rm -rf * can do if you're root.  But, if you're comfortable with the command line interface (CLI) and have system level tasks to do, there's no reason not to use su.  I've used several distros where no one even mentioned using sudo. It's just a matter of what kind of work you're doing and which method you're most comfortable with. I use both.


How to turn off the boot up beep of Ubuntu Live USB? I have recently bought a Yoga 2 Pro i5 version and a Seagate Backup Plus Slim 1TB Mobile USB HDD. I made a 4GB partition and used the Universal USB Installer to write the ISO into the partition with few GBs Persistence storage. Whenever I boot up the Ubuntu Live from the HDD in my Yoga 2 Pro, it makes a very loud beep if the following page is arrived. (I don't have the permission to upload images)

Ubuntu
Installer boot menu

Try Ubuntu without installing
Install Ubuntu
Check disc for defects
Test memory
Boot from first hard disk
Advanced options >
Help

This makes me embarrassed since everybody looks at me if I would like to use Ubuntu to do my assignments at quiet places such as library or computer lab. How can I turn off the boot up beep permanently? Thanks

The boot should only happen when you're not booting in UEFI mode (which would be pretty much always on old systems). It's due to this line in the Syslinux configuration (isolinux/menu.cfg):

menu title Installer boot menu^G

If you're using an USB, it should be enough to edit that file and remove the beep, which is caused by the ^G (or ASCII bell - \a - character).

Source:

Debian forums: SOLVED! disable "BEEP" from syslinux by wheezy hdd live

in 02.2018

where it says:
menu title Boot menuBEL

remove the BEL

I had to download SCite to do this, as my text editor


Cannot create password for account without one. I have a standard account with no password, then in the terminal it aksed for my password to install a program, I tried just ENTER and the adminstrators password but none worked, then I tried to create a password but I can't cause it says that the current password is wrong, but I haven't made a password yet! what's going on? Any ideas?

I hope you must have entered a password during installation for sure, if you dont remember and you have access to any other user account with administrator privileges, you can set password for this user from that account. For that you can use terminal,

Login to other account

ctrl+alt+t brings terminal screen type

sudo passwd rohith

here instead of rohith give user name of locked account for which you have lost password.

now you have to enter current user password and then you can enter new password for the other user. and then login to that account with that password.

Second method is by logging into debug mode from grub, and following same command as above

It seems that the root (administrator) user doesn't have a password. Just open a Terminal (Dash >> Terminal) and enter the following command:

sudo passwd root

And then enter the password twice. If it doesn't work (sudo shouldn't work if root hasn't a password) try logging in as root on a separated TTY. Please, read all the answer before continuing! Press CTRL+ALT+F2 and enter root. When it asks you for a password, just press enter. Then enter the following command:

passwd root

And enter the password twice. Maybe it'll work!

For going back to the graphical interface (the desktop) just press CTRL+ALT+F7 or CTRL+ALT+F8.


How to locate a sub-direcotry? I want to locate a sub-directory build/debug within a folder

Are there any shell command that can do this?

This should do it.

find . -type d -path '*/build/debug'

Test harness:

$ mkdir -p tester/{1..3}/build/debug
$ find tester -type d -path '*/build/debug'
tester/1/build/debug
tester/2/build/debug
tester/3/build/debug

Execute the command

find -name 'foldername'

This will find all folders (and files) of that name and show the path to it.
The search start from the current folder you are in downwards.
So if you have no idea where it is then cd / first so that you are in the root top folder. You might also want to add sudo in front of the command to make sure the search checks folder you do not have permissions too.


Ubuntu doesn't detect Windows 7 partition I am trying to install Ubuntu 12.04 on my Windows 7 machine. I have set aside another partition in my only hard drive (1TB). When I put in my CD, the installer does not detect my Windows 7 partition, as it should, and the only option given to me is to wipe everything, which I do not want. I ran the Boot Repair tool and this is the URL it spit out.

http://paste.ubuntu.com/5621531/

Any help is appreciated. Thank you.

I had the same problem, and found the solution here -

http://ubuntuforums.org/showthread.php?t=1604074&page=4&p=10022223#post10022223


dpkg: error processing package liblmdb0:amd64 dpkg: error processing package liblmdb0:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Setting up libevdocument3-4:amd64 (3.18.2-1ubuntu4.1) ...
Setting up libevview3-3:amd64 (3.18.2-1ubuntu4.1) ...
Setting up evince-common (3.18.2-1ubuntu4.1) ...
Setting up evince (3.18.2-1ubuntu4.1) ...
Setting up libepoxy0:amd64 (1.3.1-1ubuntu0.16.04.2) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 liblmdb0:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

I am getting this error every time I execute these commands on the terminal:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get autoremove

I'm running Ubuntu 16.04
I can't uninstall programs in my system and I'm also getting a System Error popup everytime my computer starts.

Try to fully reinstall this package:

apt-get install --reinstall liblmdb0

Follow the below commands to get rid of E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt --purge remove liblmdb0:amd64
sudo apt-get autoremove
sudo apt-get update


Trackpad Buttons on 2012 Samsung Series 9 Not Working Properly, appears to double click and doesn't have right click These buttons work fine in Windows, but not in Ubuntu 12.04. The buttons are part of the trackpad itself so I figure that's what's causing the problems, but is there any way to get Ubuntu to support this type of touchpad?

The left click button works, but it double clicks. For instance, if I click a link with ctrl held down, it opens two new tabs. Right button doesn't work at all.

This clickpad requires some manual Xorg configuration in order to get right and middle clicking to work properly.

Create a new file called /usr/share/X11/xorg.conf.d/52-synaptics-np900x3b.conf.
Inside paste the following:

Section "InputClass"
        Identifier      "np900x3b clickpad"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        # Enable the clickpad and set click actions
        # Single click = left button
        # Two-finger click = right button
        # Three-finger click = middle button
        Option          "ClickPad"      "1"
        Option          "ClickFinger1"  "1"
        Option          "ClickFinger2"  "3"
        Option          "ClickFinger3"  "2"
EndSection

Then log out and log in.  You should now be able to right click by using two fingers, and middle click with three fingers.  I have not experienced the one-finger double-click problem that you describe.  If this configuration doesn't fix it, you could also add the option

Option         "SHMConfig"     "True"

Then you can try debugging with synclient -m 1 which will give you feedback on what the touchpad driver is seeing.

More information about this fix and other issues are available at the Series 9 Community Wiki page

I think the series-9 13" keyboard layout mistakes are fatal, though the series-9 15" is such a unique and slim machine it'll probably sell like hotcakes despite the issues...


DVD or USB to install Ubuntu? My ASUS notebook K53E is currently running under Windows 7. I would like to install Ubuntu 12.04 alongside Windows and be able to choose between these two systems each time I start the computer.

I have downloaded Ubuntu and burned a DVD. When restarting my computer (with this DVD in the drive) the DVD is ignored, i.e. Windows is run as usual. When I press delete while rebooting (still with this DVD in the drive) a BIOS set up menu is shown with plenty of things to enable/unable, add, etc. But I don't really know what to do/choose.

When I exit this menu, again,  the DVD is ignored, i.e. Windows is run as usual.
Bascially: I'm stuck.

Question: Is it worth while trying to install Ubuntu from a USB stick rather from a DVD? I.e. is Ubuntu easier to install from a USB than from a DVD? Or am I likely to run into the same kind of problems?

Comment:

Thanks Alina and DVJ for your answers. So I guess the answer to my main question is: no, installation form a USB stick is not really easier than from DVD.

Following your advice about the boot priorities, I have now achieved a little improvement: I now get to GNU GRUB where I can choose to 'install Ubuntu'. Unfortunately, after that the screen goes completely grey and nothing happens.

A few things. On the splash screen for your bios (very first screen) there may be an option to press a key to enter the boot menu. If there is, ensure to press the respective key to enter your boot menu.

If that does not exist you may need to go into the Bios itself (that spot you mentioned that has a bunch of enable/disable options) Somewhere in there there will be a screen that gives you the option of moving drives into order of preferance that it boots from. Ensure CD/DVD drive is a head of your harddrive. Save your settings and restart and it should then give you an option to boot from the DVD.

As for the USB, without having a boot menu that you can access from that first splash screen - it may actually be harder to boot from the USB device as not all BIOS support have the option in the device boot list for USB drives.

there is  another way.  download onto your  windows  hdd and use the  installation setup file from within windows.


how to install Wifi and Bluetooth drivers in ubuntu 12.04 lts I am using HP Pavilion 15 -no11tu which has been awarded the status of Enabled for Ubuntu.

When Ubuntu was shipped with my hp laptop,Everything worked fine including WiFi,webcam and Bluetooth.

Some days ago I formatted my System and reinstalled Ubuntu 12.04.3 LTS which I downloaded for Ubuntu website. But Instead of connecting my system to internet and after doing all update and upgrade Ubuntu didn't detected my system WiFi and Bluetooth.

HP does not provide driver support for Linux.

My Configuuration::

htcoders@ubuntu:~$ sudo ifconfig

eth0      Link encap:Ethernet  HWaddr a4:5d:36:7b:f2:d7
          inet addr:172.16.232.178  Bcast:172.16.232.255  Mask:255.255.255.0
          inet6 addr: fe80::a65d:36ff:fe7b:f2d7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:888333 errors:0 dropped:112 overruns:0 frame:0
          TX packets:715296 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1156686828 (1.1 GB)  TX bytes:51009168 (51.0 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:12787 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12787 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:800669 (800.6 KB)  TX bytes:800669 (800.6 KB)

htcoders@ubuntu:~$ lspci

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Device 0a0c (rev 09)
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 1 (rev e4)
00:1c.1 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 2 (rev e4)
00:1c.2 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 4 (rev e4)
00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5227 (rev 01)
08:00.0 Network controller: MEDIATEK Corp. Device 7630
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 08)

Please Help.

Thanks

Wifi :

Driver can be installed as running followings :

sudo apt-get install collectd-core collectd-dev collectd-dbg collectd-utils

Then Install the network Manager for the wifi connectons - Wicd

(You can run with Network Manager. But for channel selection and many other features can be done with Wicd)

sudo apt-get install wicd-gtk wicd wicd-daemon wicd-curses wicd-cli

Bluetooth :

Drivers for the bluetooth devices can be installed with :

sudo apt-get install bluez bluez-alsa bluez-audio bluez-btsco bluez-compat bluez-cups bluez-dbg bluez-gstreamer bluez-hcidump bluez-pcmcia-support bluez-tools bluez-utils python-bluez bluewho indicator-bluetooth libbluetooth-dev  libgnome-bluetooth11 libbluetooth3

Well,
friends you can download the driver from here :

https://github.com/mdjahidulhamid/MT7630E/archive/master.zip


Annoying popup wifi password in 15.04 Always I log into Ubuntu 15.04 and my wifi network (HP-LASERJET) is in range it wants a password from me, despite I always save it. I have a problem just with this wifi network (it is not a printer, it is a basic AP). The only difference is, that it has a hidden SSID. How to force ubuntu to remember my password? I dont want to type it again and again. Thank you.

When I try to fix it in Network Manager -> Edit connections, I choose my network I save the password on my screen appear different popup window:

And I have to type keyring password before I want to connect to my wifi. On different networks I do not have to do this.

edit :

sudo -H gedit /etc/NetworkManager/system-connections/HP-LASERJET

and find the section that says

[802-11-wireless-security]
key-mgmt=wpa-psk

and place the following on the next line.

psk=yourPassword

As a prevention for rewriteing it by system use:

chmod 400 /etc/NetworkManager/system-connections/HP-LASERJET

This may or may not apply, but I suspect that if you open your Internet connection icon at the top of the screen and select "edit connections" you might be able to select your printer, press "edit..." and check the box marked "connect automatically".  I realize it is probably already checked, but maybe there is a way to make it apply the saved password automatically.  It might be a setting under the tab there marked "wireless security".

The reason I suspect it might not apply is that I am using an earlier version of Ubuntu and the configuration of this feature may very well have changed slightly.


Submit text editor to Ubuntu Software Center I want to place my text editor to Software Center app, like other editors: Scite, Leafpad etc. I have Deb file to install my app. What should I do?

ps. App is freeware PC program, Desktop program.

There is already a great answer to this question [here](
How to get my software into Ubuntu?), by @an drewsomething .But i will reproduce it here for the OP.

There are a number of paths that a package can take to enter Ubuntu. The overview of Ubuntu development targeted at "upstream" developers like yourself might be a useful place to start, but I'll try to give you some pointers as well.

Through Debian

Generally, if you are publishing free and open source software going through Debian first is the best path. This way ensures that your package will have a dedicated maintainer. It also will reach the largest number of users as it will be available in not just Debian and Ubuntu but all of their derivatives as well. Some useful links for requesting/providing new packages in Debian:

Work-Needing and Prospective
Packages - Information on how to
file "Intent to Package" and "Request
for Package" bugs as well as list of
open ITPs and RFPs.
Debian Mentors
FAQ - debian-mentors is for the
mentoring of new and prospective
Debian Developers. It is where you can
find a sponsor to upload your package to the archive.
Debian Developer's Reference - Debian Developer's Reference's section on new packages. The entire document is invaluable for both Ubuntu and Debian packagers.

Directly into Ubuntu

In some cases, it might make sense to go directly into Ubuntu first. Some helpful links:

The Ubuntu App Developer site - for lightweight desktop applications, you can submit them directly on the My Apps section of developer.ubuntu.com, the App Review Board will review them and they will be published in the Software Center.
Packaging Guide - an introduction to how to package for Ubuntu.
REVU - a web-based tool to which Ubuntu contributors can upload new packages for review by Ubuntu Developers for inclusion into Ubuntu.
Sponsorship Process - After entering Ubuntu, you can maintain your package through the sponsorship process.

Personal Package Archives

Beyond the official Ubuntu and Debian channels, Launchpad offers you the ability to distribute Debian packages directly to your users through its Personal Package Archives or PPAs for short. One particularly useful aspect of a PPA is that you can provide daily builds of your software for testing purposes.


Problems detecting android tablet IView 788TPC with mtp-tools I installed mtp-tools on 14.04 "Trusty" through Software Center. No problems with install. Issuing `mtp-detect'
 results in

'Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.6

Listing raw device(s)
   No raw devices found.'

I did some research and found that mtpfs might be required. so installed that with

:~$ sudo apt-get install mtpfs

I still get the following result

:~$ mtp-detect
Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.6

Listing raw device(s)
   No raw devices found.

My research indicates that the mtp-tools package is still under development.

source: http://libmtp.sourceforge.net/

and the documentation is not comprehensive.

source man mtp-tools as well as mtp-detect -h

I tried adding the PPA from Are there any plans to improve mtp support on future Ubuntu releases? but it seems this is already worked into trusty 14.04 and won't resolve the problem.

Can anyone provide a recommended course of action to resolve this problem?

The Iview 788TPC doesn't support MTP only USB storage.

I had a similar issue with HTC phone running Android 4.2.2.  I would not mount under Ubuntu 14.04.  I fixed it by turning on USB debugging on the phone under Developer Options.  If you can't see developer options there is a way to turn it on - follow directions here http://www.androidcentral.com/how-enable-developer-settings-android-42


How to boot back into Windows 8 after deleting its boot path? I recently booted into Ubuntu 12.04 for the first time and had great difficulty doing it. In the process I may have deleted the boot path back to Windows 8. I'm not sure I just really wanted Ubuntu, but now I feel like since this should be a dual boot. I have the right to get back into Windows 8 if I ever wanted to. When in grub I can select Windows 8 to boot into, but an error screen pops up which says:

Windows Boot Manager
Windows failed to start. A recent hardware or software change might be the cause.
To fix the problem:

  1. Insert your Windows installation disc and restart your computer.
  2. Choose your language settings, and then click "Next."
  3. Click "repair your computer."

If you don't have this disc, contact your system administrator or computer
manufacturer for assistance.

  File: \Boot\BCD

  Status: 0xc000000c

  Info: The Boot Configuration Data for your PC is missing or contains errors.

yes you can do adding/removing entries to grub by using grub-customizer

open your terminal and type these lines one after one

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Then open your Grub-customizer from Unity dash.

You can usually still boot into Windows. Try pressing F12 (or whatever boot options hotkey you have) on startup and selecting windows from there. Not an ideal fix, but better than formatting a live CD.


Ubuntu stopped finding my SSD I have a 3 years old Lenovo Miix 720 which I installed Ubuntu (18.04 iirc) at the beginning of the year. It ran normally and I used it as a secondary machine, that means it wasn't as busy anymore.
Now i haven't used it for quite a time and when I want to boot it up the first thing I see us the GRUB menu (Ubuntu, Advanced options for Ubuntu, UEFI Firmware Settings) where I choose the first option and it ends up in the following error message:

it also doesn't start up when I use recovery mode.
When I enter ls /dev I realized it doesn't show my drive (sda), therefore I assume Ubuntu can't detect my drives anymore. Since GRUB starts up and in my UEFI Settings I still can see the NVMe Drive in my boot options (if that is a valid indicator) I would rule out a mechanical problem.
My next step was to load a USB stick with a Gparted Live image and check if there is anything wrong with my partitions. The result was, that neither parted nor df seems to find any partition, not even a disk. in the gparted menu i could only find the USB stick.
I made another attempt with a Ubuntu install image, checking if I could reinstall Ubuntu. But here I got the message that I have to deactivate iRST, which I did because I already installed Ubuntu a few months ago. I also double checked with my UEFI and indeed, the SATA Controller was set to AHCI.
So this is now the end of my ideas therefore I hope someone could help me with this. Following a quick overview of some of my current UEFI Settings:

Sata Controller set to AHCI (as opposed to RAID)
Boot Mode: Legacy Support, UEFI first
Boot Order: USB first, Ubuntu second, NVMe Samsung SSD third

Thanks in advance

I had the same problem but I changed SATA controller to AHCI and it helped


How do I remove old kernel versions to clean up the boot menu? Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time.

I know I can manually search through the installed packages and remove them.

Does Ubuntu provide any easier way to clean them up or keep them from showing in the boot list?

16.04 and newer versions of Ubuntu

sudo apt autoremove

This command removes packages that were automatically installed to resolve a dependency, but are now no longer depended on. This includes old versions of linux-headers-* and linux-image-*. (It’s also smart about this process, leaving one spare version of the kernel around as a fallback!)

11.10 and newer versions of Ubuntu

GRUB2 and its display of all kernels

The latest versions of Grub2 installed in Ubuntu automatically display the latest kernel and hides the older kernels that you may have installed.

If you do not see your grub - then remember to press Shift whilst booting.

As you can see, only the latest kernel is displayed.

If you select the option shown (press Enter) then all the old kernels become visible and available to boot from.

How to permanently delete older kernels

First boot with the latest available kernel.

There are a number of ways to delete old kernels.  Personally, I wouldn't touch Computer Janitor since this is acknowledged to break your computer with its suggestions.

synaptic

An alternative is Synaptic (sudo apt install synaptic)

search for linux-image, right-click a kernel and choose complete removal and finally click the Apply button to delete the kernel.

Repeat the search but this time for linux-header - you can delete the associated headers for the kernel image chosen previously.

Synaptic though will not attempt to verify what you are trying to remove... you could inadvertently delete your newest kernel - or even delete all of your kernels via this tool leaving you with an unbootable Ubuntu!.

Remember to check which kernel you are using type:

uname -r

The result would be similar to:

Remember the result and the number - make sure you don't delete the corresponding image or header.

Recommendation

My recommendation is to keep at least two or preferably three kernels including the latest.  The reason for the recommendation is that you will have at least one/two other kernels to boot with, if for what-ever reason the latest kernel you are unable to boot with or introducing a regressed capability such as broken wireless.

Here's the script I use to keep 2 kernel packages installed (i.e. the current one and the previous one). It also removes the initrd-VERSION-generic.old-dkms files left around by DKMS, which can fill-up a small boot partition.

The script:

echo "**Removing -generic.old-dkms files from /boot**" && rm -f /boot/*-generic.old-dkms # if using DKMS it creates initrd-VERSION-generic.old-dkms in /boot and doesn't clean them up, meaning after a few kernel upgrades /boot can become full
OLDKERNEL=$(ls -tr /boot/vmlinuz-* | head -n -2 | cut -d- -f2- | awk '{print "linux-image-" $0}')
OLDHEADERS=$(ls -tr /boot/vmlinuz-* | head -n -2 | cut -d- -f2- | sed 's/-generic//g' | awk '{print "linux-headers-" $0}')
OLDHEADERS=${OLDHEADERS//-pae/} # remove -pae string as linux-header packages don't have it in their names
if [ -n "$OLDKERNEL" -o -n "$OLDHEADERS" ]; then
apt-get -q remove --purge $OLDKERNEL $OLDHEADERS
echo "**Finished removing old kernels**"
else
echo "**No old kernels found**"
fi


Partition does not start on physical sector boundary? I've one HD on my laptop, with two partitions (one ext3 with Ubuntu 12.04 installed and one swap).

fdisk is giving me a Partition 1 does not start on physical sector boundary warning. What is the cause and do I need to fix it? If so, how?

This is sudo fdisk -l:

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 testine, 63 settori/tracce, 91201 cilindri, totale 1465149168 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Identificativo disco: 0x5a25087f

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63  1448577023   724288480+  83  Linux
Partition 1 does not start on physical sector boundary.
/dev/sda2      1448577024  1465147391     8285184   82  Linux swap / Solaris

This is sudo lshw related result:

 *-disk
                description: ATA Disk
                product: WDC WD7500BPKT-0
                vendor: Western Digital
                physical id: 0
                bus info: scsi@0:0.0.0
                logical name: /dev/sda
                version: 01.0
                serial: WD-WX21CC1T0847
                size: 698GiB (750GB)
                capabilities: partitioned partitioned:dos
                configuration: ansiversion=5 signature=5a25087f
              *-volume:0
                   description: EXT3 volume
                   vendor: Linux
                   physical id: 1
                   bus info: scsi@0:0.0.0,1
                   logical name: /dev/sda1
                   logical name: /
                   version: 1.0
                   serial: cc5c562a-bc59-4a37-b589-805b27b2cbd7
                   size: 690GiB
                   capacity: 690GiB
                   capabilities: primary bootable journaled extended_attributes large_files recover ext3 ext2 initialized
                   configuration: created=2010-02-27 09:18:28 filesystem=ext3 modified=2012-06-23 18:33:59 mount.fstype=ext3 mount.options=rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered mounted=2012-06-28 00:20:47 state=mounted
              *-volume:1
                   description: Linux swap volume
                   physical id: 2
                   bus info: scsi@0:0.0.0,2
                   logical name: /dev/sda2
                   version: 1
                   serial: 16a7fee0-be9e-4e34-9dc3-28f4eeb61bf6
                   size: 8091MiB
                   capacity: 8091MiB
                   capabilities: primary nofs swap initialized
                   configuration: filesystem=swap pagesize=4096

These are related /etc/fstab lines:

UUID=cc5c562a-bc59-4a37-b589-805b27b2cbd7 /               ext3    errors=remount-ro,user_xattr 0       1
UUID=16a7fee0-be9e-4e34-9dc3-28f4eeb61bf6 none            swap    sw              0       0

Your hard disk has Advanced Format 4096-byte sectors to which the partition is not perfectly aligned
This line explains the warning:
Sector size (logical/physical): 512 bytes / 4096 bytes

Your hard disk is one of the newer models which uses the Advanced Format of 4096 bytes per physical sector instead of the older 512 bytes/sector.
These HDDs can still provide a "legacy" emulation of 512 bytes/sector, which is why you see the logical sector size as 512.
In fact, lshw shows it's a Western Digital drive, the first company to switch to AF. They have an extensive page with lots of information on it, which you may wish to look at.

Thus, the warning occurs because partition 1 starts at logical sector 63 = byte 32256, a number not divisible by 4096; in fact it's near the end of the 7th physical sector (position 7.875 to be exact :)
Should you fix it? If so, how? [always backup!]
In theory this sort of partitioning may affect read/write IO rates somewhat, depending on your drive's firmware. If you are happy with the performance now, ignore the warning, and no need to do anything. If not, backup all important data first, and then use Gparted to move the partition so that it starts at 4096-byte sector; setting the start boundary at 1 MiB is an easy way to do it.

Technically, you can set the start to any logical sector which is a multiple of 8, e.g. 64 is good, 256 is good, etc., but 63, 255... are not.

If you have a windows dual boot you can use MiniTool Partition Wizard. This thing has saved my ass multiple times. Just right click the partition and click align. Don't forget to click apply.


Using installed fonts in gnome-terminal Recently I have been messing with gnome-terminal to make it look more appealing. I tried using installed fonts that were in my ~/.fonts folder (installed with Font Viewer) but when I edit the gnome-terminal profile, the installed font doesn't show up.

The font that I am trying to use is cure.se.ttf, and every other program that allows font changing works, as well as it being intstalled globally.

Am I installing them wrong, or is there a certian place they need to be?

What worked for me is putting the font files in ~/.local/share/fonts and then running,

$ sudo fc-cache -vf ~/.local/share/fonts

The fonts in ~/.local/share/fonts are available for all apps now.

Updating your font cache might solve the issue. Try to run the following command:

fc-cache -vf ~/.fonts


virtualbox error when updating system I was just wondering, has anyone had this problem before??
This happens when I try to do apt-get upgrade or install new software through terminal. I would like to note that virtualbox works.. How can I check kwhich dependencies are needed ???  apt-get update -f doesn't help

Thanks in advance

Setting up virtualbox (4.3.26-dfsg-2ubuntu2) ...
insserv: script virtualbox: service vboxdrv already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package virtualbox (--configure):
 subprocess installed post-installation script returned error exit status     1
dpkg: dependency problems prevent configuration of virtualbox-qt:
 virtualbox-qt depends on virtualbox (= 4.3.26-dfsg-2ubuntu2); however:
  Package virtualbox is not configured yet.
Package virtualbox-4.3 which provides virtualbox is not installed.

dpkg: error processing package virtualbox-qt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of virtualbox-dkms:
virtualbox-dkms depends on virtualbox (>= 4.3.26-dfsg-2ubuntu2); however:
Package virtualbox is not configured yet.
Package virtualbox-4.3 which provides virtualbox is not installed.

dpkg: error processing package virtualbox-dkms (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
    No apport report written because the error message indicates it's a follow-up error from a previous failure.
            Errors were encountered while processing:
 virtualbox
 virtualbox-qt
 virtualbox-dkms
 E: Sub-process /usr/bin/dpkg returned an error code (1)

Using the command apt-cache depends <package-name> should tell you which dependencies are needed on a package.


How to permanently hide Unity dock? I like unity, and the way it organizes applications but I don't like the dock. I would like to use Docky instead.

If it's possible, I don't even want to see the dock when I hit the super key. I don't even wanna see it when I open Unity launcher.

While I wish this was all possible, I know this is probably impossible but it's worth a shot.

I don't believe there is a way to replace the Unity launcher with Docky, but you can always auto-hide it and just ignore it. That seems quite annoying though.

How can I configure Unity?

^That should help you with auto-hiding the launcher.

Alternatively, you can always log into the Ubuntu Classic session, delete the bottom panel, and run Docky at startup. If you need further help with that, feel free to ask.

Install advanced Compiz settings manager (type ccsm in Software Center).
Run it and find Unity plugin under Desktop category.
Customize it any way you want. To solve your problem you should set the Reveal Mode to None and Hide Launcher to Autohide. You can also disable the Key to show the launcher and install Gnome Do instead, which many find much better.

Using this manager you're able to customize your Ubuntu very deeply, not just the Unity behaviour. I think you'll be amazed with what you can do with it.

I confirm that this solution still works on 11.10.


Ubuntu update manager error & Ubuntu internal error I'm using Lenovo B460e laptop 2gb ddr3 ram ,Dual core processor,Ubuntu 32bit os

When opening update manager the following error occurs
'E:Type 'wnloader' is not known on line 2 in source list /etc/apt/sources.list.d/jd-team-jdownloader-precise.list' can anyone help

sudo add-apt-repository ppa:jd-team/jdownloader && sudo apt-get update && sudo apt-get install jdownloader && sudo apt-get upgrade


I cant install old nvidia driver after kernel update i upgraded my ubuntu to 20.04 and the kernel to 5.4.0-33 , and now i cant install 390.87 nvidia driver and i can install only 390.132
my gpu : NVIDIA GeForce GT 610
my gaming performance is better on 390.87
now what have i do ?

You have not given the details on How you tried to install, why you were not able to install (error message, etc), what exactly is the difference in performance that you noticed. It is always a good practice to provide as much (relevant) info as possible. It will help you get a quick & proper solution (or) at least, more closer options - besides helping/motivating the people who are trying to help.
If the driver is showing as the Recommended driver under Activities -> Additional Drivers, then it the latest stable legacy driver that supports your Ubuntu version & kernel version - according to Ubuntu.
Judging by the version number, the one that is installed now, seems to be the more later (if not latest) subversion of Nvidia 390 driver family. However, at times latest kernels & latest drivers don't go hand in hand.
You can install a particular version of NVIDIA driver by downloading it from official NVIDIA site (link below).
https://www.nvidia.com/Download/driverResults.aspx/137276/en-us
Note: This is for 64-bit GPU. If you have 32-bit, browse back in the site & select the appropriate one.

Now, before installing the particular version, you need to remove the
currently installed version(s). Follow the link below for
instructions.
https://askubuntu.com/questions/1097433/ubuntu-18-10-how-can-i-install-a-specific-nvidia-drivers-version

The download is a file with .run extension, and can installed by using just sh command (like below).
sh NVIDIA-Linux-x86_64-304.125.run


Does Ubuntu support Toshiba L50 -C-12V (PSKWNE) I'm new to the world of web design, development and programming and I was thinking of trying out a Linux OS. After researching for a few weeks I've come to the conclusion that Ubuntu would be the best one. However, I bought a Toshiba L50-C-12V last month and I need to know if it will work with my hardware fully or if I will at least be able to get ubuntu compatible drivers for my hardware. I know that people have asked similar questions but I am not looking basics, I want to be able to run Ubuntu without any problems. The Link below will take you to the specifications for the exact make and model of my laptop. Any assistance would be greatly appreciated.
Laptop Specs

I checked your specs, and in my opinion all modern linux distros will support them, ubuntu included. Most hardware setups dont need proprietary drivers in linux unlike windows, so yea as Rinzwind also said i would suggest you to try ubuntu. Just be sure to use 14.04 LTS version rather than the latest one as it is the most compatible one.


Not recognising 4GB of RAM I have a pae kernel but free -m only shows 3.2 Gigs of the 4 GB that is physically installed. The BIOS shows 4 GB available. uname -a gives:

3.2.0-35-generic-pae #55-Ubuntu SMP Wed Dec 5 18:04:39 UTC 2012 i686 athlon i386 GNU/Linux

So it is 32-bit but as I say pae. Running Ubuntu 12.04.

Anybody any idea why it can't see the full 4GB?

Motherboards reserve a chunk of address space ( usually 800M or so ) just below the 4GB line for use by other hardware instead of ram.  On cheap or buggy motherboards this leaves the ram that would otherwise have those addresses inaccessible.  Some motherboards have an option in the bios to enabled memory hole remapping or hoisting, so that ram will be assigned an alternate address above 4GB, allowing it to be accessed by a 64 bit or pae enabled kernel, so poke around in your bios for such an option.

There was a great anser here, where is it? it gone?
he showed that the user has 3.72 GB (calaulating right), and that 3.72-3.2 are used by the graphic card.


How do I resize the partition of a Ubuntu-server? Is there an easy way to decrease the disk volume on a Ubuntu server?

I run a virtual environment and need to decrease my disk volume since I'm running out of space in my non virtual environment.

I think you will have to use resize2fs.

You will have to:
1. boot from a livecd,
2. then set the partiotion as ext2,
3. and run something like resize2fs /dev/sda1 8000M.

Here is a more extensive step by step instructions.

Beside resizing your partition using a LiveCD and gparted you could change the amount of space reserved by root (in percent):

sudo tune2fs -m 10 /dev/sda1

But this only affects non root user!

You can also create quotas for specific users using the quota utility (User Quotas with Ubuntu)


Computer wouldn't detect WiFi Network - Ubuntu 16.04.1 I use Ubuntu 16.04.1. Lenovo Ideapad 310-14ISK.
All of a sudden, there's no Internet connection.
After restarting my computer 3 or 4 times and restarting the WiFi,
and after typing sudo service network-manager restart - nothing worked.

What should I do?

Help much appreciated. Thank you.

apt-get install --reinstall network-manager – Nothing happened
sudo service network-manager status – Loaded and Active (running) with a few lines indicating the date
sudo apt-get install --reinstall network-manager-gnome

Then I tried to install WICD.
I followed everything and ultimately the Network Manager has disappeared altogether after restarting the computer, and I cannot possibly reinstall it.

UPDATE: Now there's WiFi, but there's no indication for the networks.
Now I need to somehow reinstall Network Manager offline.

(apt-get install --reinstall network-manager)
Should reinstall said program


View the folder of a selected file in the dash When browsing files in the dash and I click a file it opens the file. Is it possible to instead choose to view the folder of the file in Nautilus? If, how?

Here's an example to clarify. I want to rename a file that I worked on yesterday. I open the dash and view earlier files. There I find the file but the only possible choice seems to be to open the file. What I would like to is to view the folder of the file in Nautilus so that I may rename it via Nautilus.

It is intended that  dragging the file over the launcher & dropping onto the 'Home Folder' icon, which should be highlighted, will open a nautilus window at the folder where the file is located

At the moment in 11.10, when doing this nautilus may only open a Home folder window instead, no matter where the file is.

If this is the case then it can be corrected by changing the Exec= line in nautilus-home.desktop to look like this (adding a %U, note there is a space after nautilus

Exec=nautilus %U

You can simply edit the existing nautilus-home.desktop in /usr/share/applications

gksudo gedit /usr/share/applications/nautilus-home.desktop

Or of you have a custom nautilus-home.desktop then edit the Exec= in the top section, no need to add %U to any of the quicklist entries

A few usage notes -

The Dash remains open after dropping the file. To raise nautilus click on the Home Folder icon. You can open multiple files by switching back & forth if desired

If you are using 11.10, then dash does have a file and folders option. There are four icons representing the various options in dash: Home, Applications, Files and Folders, and Music Collection.

If you are looking to search deeper within the system though and open a file manager folder, you might want to try Desktop Search from the Ubuntu Software Center (tracker-gui) as the Google-Desktop Search is now deprecated and tracker should be able to assist.


Ubuntu on Microsoft Virtual PC Do you have tips or a guide how to install Ubuntu in Microsoft Virtual PC?

I have found some (older) information, but I wonder if this is still valid. And it looks very "unfriendly".

You can (it's much like anything else: use the ISO as the CD drive, boot from CD, install, done) but the support is lacking somewhat. Sound only occasionally works and the performance is pretty awful (in my experience).

You'd do a lot better to download VirtualBox (free) or VMWare Workstation (not free) and use that instead.

I was looking for same. First i followed Zaz answer. I was able to install Ubuntu in virtual machine but i never able to start it. As soon as i logged in it crashed.
My personal experience with virtual pc was not good so i switched to virtual box.  I followed following step by step guide to install Ubuntu in virtual box.

http://computernetworkingnotes.com/ubuntu-12-04-tips-and-tricks/how-to-install-ubuntu-on-virtual-box.html

With virtual box its working fine without any issue.


Why was Banshee chosen to be the default for 11.04? What are the reasons for Banshee replacing Rhythmbox in Ubuntu 11.04?

I don't want your opinion on which is best nor why. I want to know what the reasoning was behind the decision.

dv3500a's answer has links to the information. Here is an informative video from Gabriel Burt's talk at GUADEC that might give you some information that gives you an overview of some of the things that are nice in Banshee. Here are the slides.

I was at the session and here are some of the highlights:

The ability to change UIs from netbook to "normal". (It's handy to have one media player for both form factors)
A vibrant community of contributors (see the slides for numbers) who is willing to work with us closely.
An easy way to hack on extensions.
Follows the GNOME schedule.
Polished device support, including syncing of playlists to devices.
Video library support (though this is new and not very polished, maybe we'll hide it for 11.04)

Banshee has a bunch of other great features, but these were the ones we mostly discussed at this session.

The cynic in me says:
Banshee is a better clone of iTunes than Rhythmbox and given the recent suggestion that Ubuntu 11.04 will have the global menu bar by default, it all makes for a better clone of OSX.