Friday, March 31, 2017

Reset root password for Ubuntu 16.04 - recovery mode asks for root password




We've lost the root password from our file server from supermicro server.



I tried to follow the common instructions to reboot with left shift and drop to root shell as it is described in this answer.



When I choose root in this menu:



menu




Ubuntu still asks for root password or propose to press Ctrl+D to return to Recovery menu.



Are there any other ways to reset root password?



Since you have physical access to the machine you can do this via an Live USB/CD.




  1. Boot from your USB and chose 'Try Ubuntu' instead of 'Install Ubuntu'.




    enter image description here


  2. Open a terminal (Ctrl+Alt+T) and first look what device handle your machine disk has. You can do that with lsblk which should yield an output like this (I used a live CD for this since I am reproducing the steps in a VM):



    $ lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 119,2G 0 disk
    ├─sda1 8:2 0 16G 0 part [SWAP]
    └─sda2 8:3 0 103,2G 0 part /
    sr0 11:0 1 1024M 0 rom /cdrom



    So in this case it would be /dev/sda2 but this could differ for your installation.


  3. Now mount the partition in question with:



    sudo mount /dev/sda2 /mnt

  4. Now coming to the part where you can finally1 chroot into it.



    sudo chroot /mnt



    You will see that your prompt has changed to something like root@ubuntu:/# and now the next steps are pretty straightforward.


  5. Change the password for your users with passwd:



    passwd root
    passwd


    This should have done it already, but if that for whatever case setting passwords with the passwd command fails, you can go deep down the rabbit hole and change the /etc/shadow file, but Beware: this is quite dangerous and you do this at your own risk.


  6. Exit the chrootby pressing Ctrl+D or type exit. Unmount the machine with sudo umount /mnt and then reboot by sudo reboot. You want to take the USB/CD out and make sure you're actually booting the machine in question.








1 That chrooting method is sufficient to reset passwords, or even to add and remove users from groups, but it does not allow you to fully use the installed system through the chroot. Many other commands, such as apt, would fail if you ran them in a chroot set up that way.



If you ever need to perform more extensive repairs on an installed system that you are accessing from a live CD/DVD/USB--for example by installing, removing, or updating software--then you would want to set up some additional mounts before chrooting. You would do that by running these commands after running sudo mount /dev/sda2 /mnt but before running sudo chroot /mnt:



sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /dev/pts /mnt/dev/pts

sudo mount -t sysfs /sys /mnt/sys
sudo mount -t proc /proc /mnt/proc


If you have multiple partitions for the different parts of the OS, like for example a separate /boot partition, then you would want to mount them to the right positions. For example, where sdX is the device name for that particular drive and n is the partition number:



sudo mount /dev/sdXn /mnt/boot


It is fine if you run those commands before chrooting in to reset passwords with the passwd command. It is not necessary, though.



resolution - Input signal out of range; Change settings to 1600 x 900

I recently installed Ubuntu 12.04 onto my HP Pavilion, in an attempt to make the desktop able to dual-boot Windows 7 and Ubuntu. I managed to get down to the last step, and finished the installation process. After it prompted me to remove what I used to install Ubuntu, I did so, removing my SanDisk 8GB flash drive, and allowed the system to reboot.



Like usual, the desktop booted with the HP image, with the options at the bottom(Boot Menu, System Recovery, etc). However, when it should have started up with Ubuntu(like I'm certain it should have done), I received the following error:




Input signal out of range
Change settings to 1600 x 900



From the time I installed the operating system, back in late August, till now, I've been trying to figure out how I would go about fixing this issue. My mom is also starting to get frustrated with my not having resolved the issue, as its the only desktop that has a printer installed.



Is there any possible way to resolve this?



To summarize the problem:

-Successful boot

-Screen brings up error


-Screen goes to standby

-Nothing else possible until desktop is rebooted, which will initiate the above three steps



A few notes:

-I did not back up my computer before I installed Ubuntu. I didn't have anything to write to, and basically just forgot to.

-I don't have a Recovery Disk.

-I don't have the Windows 7 disk that is supposed to come with the computer.

-It has been narrowed down by a friend on Skype that the problem lies with the display, and that the vga= boot command does have something to do with fixing the problem



Thank you in advance for resolving this problem. I greatly appreciate it.

Why the Software Updater asked for password only in the first attemp of installing updates?

Sometimes, the Software Updater asks for a password (normally when you try to install kernel updates).



Every time that I connect to the Internet, the first thing I do is check for updates. And I got 2 updates today.



When I tried to install them, I was asked for the password to install, but I thought it was strange, since it wasn't a kernel update, so I clicked in the cancel button and the update was canceled.



So, I ran again the Software Updater and I got the same programs update, but after pressing to install, it didn't asked for a password and it installed the updates.




So, the question is: Why it only asked in the first time? Is this a bug or anything? Should I be worried about that?



Thank you guys for helping me.



EDIT: I haven't noticed anything strange on syslog and auth.log.

boot - Installing Ubuntu without touching Windows



I have a PC with 5 hard drives (SSD and HDD). One of the drives has Windows 10. In the past, I have tried to install Ubuntu and Windows using the following method so there will be no interference between the two operating systems:



I Simply removed all the hard drives, except the one that I wanted to install Ubuntu, then install ubuntu and connect other hard drives. Then select the boot drive using the BIOS.




Can I do the same thing without taking out taking all the drives?



I mean I do not like to see the GRUB on boot, I want windows to boot as default without the need for GRUB.





That is:



Step 1: Disconnect all the hard drives except the one you want to install Ubuntu in.




Step 2: Install Ubuntu



Step 3: Reconnect all the other hard drives.



If you don't want to open the computer and disconnect the drives, that is fine too. Just be careful when you select the drives. See Guilherme's answer below about using "Something else..." option and "Location for bootloader (GRUB) installation". In particular, the Grub, also known as the bootloader, goes in the same drive as Ubuntu.



There are a few things you need to keep in mind if this is the first time you are using an UEFI/GPT system.



Point 1: Make sure the Installation media or the Live DVD/USB you install Ubuntu from boots in the UEFI mode, not the Legacy mode.




When you boot the Install USB/DVD in UEFI mode you will see a Grub based menu with



enter image description here



If the install USB/DVD boots in the Legacy mode, you will see a graphical page with the these choices:



enter image description here



I assume Windows is installed in the UEFI mode, not Legacy BIOS mode in the other hard drive. If you have Windows in UEFI and Ubuntu in Legacy modes, then every time you want to switch OS you will have to get into UEFI settings and change mode and reboot.




Point 2: Use Guided Partition Table (GPT) in the drive you install Ubuntu. This may not be necessary, but UEFI and GPT goes hand in hand, and having MBR (Master Boot Record) based partition table, may cause issues.



If you plan to use the default installation method for Ubuntu and use the whole drive, then you don't need to worry about partition schemes. Ubuntu will do everything needed.



Done



If you prefer to do your own partitioning then there is one more thing...



Point 3: You need to create an extra partition needed for UEFI. This has to be a primary partition in FAT32 format of size between 100MB to 500MB. It must have the esp and boot flags set. You may want to make it the first partition. The mount point for this partition must be /boot/efi.




You can partition the rest of the drive as you please. The default option would be to partition the rest of the drive as a single ext4 formatted partition with mount point /. Most recent versions of Ubuntu use a swap file instead of a linux-swap partition. So, you may want to skip that. You may use other partition schemes if you know what you are doing.



Bug Alert!



There is a bug (bug number: 1396379) in the Ubuntu installer that installs the grub bootloader on the first ESP it finds. See https://ubuntuforums.org/showthread.php?t=2182302 for discussions on this.



To workaround this bug you will need to take a few extra steps.



Workaround





  1. When you boot from the LiveUSB in UEFI mode, use the Try Ubuntu
    without Installing
    option.

  2. Open the Gparted application when the Ubuntu desktop starts.

  3. Select the Windows (first) drive within Gparted at the top right
    corner(1):



enter image description here




The NVME drive in this picture does not have Windows. However, it has an EFI System Partition (ESP).




  1. Highlight the ESP in the bottom list of partitions as shown above (2). Right click on the highlighted partition and select Manage Flags from the context menu. You will see:



enter image description here



You should see two flags, boot and esp checked. Uncheck those two flags. Click Close button to exit the Manage Flag window. Click the green "Apply" button if it is clickable.




You will need to restore those check marks once Ubuntu is installed using the same above process so that Windows can boot from the first drive.



Close Gparted.



This is the end of the workaround.



Hope this helps


software installation - Where to install OpenCV (which directory, NOT from apt-get package)?

relatively new Ubuntu user here (but very familiar with OpenCV use on Windows). Having read this post:




What is the Linux equivalent to Windows' Program Files?



It's clear that there is not a direct Ubuntu/Linux equivalent of "Program Files" or "Program Files (x86)" in Windows.



For OpenCV installation, I followed this page:



http://milq.github.io/install-opencv-ubuntu-debian/



which essentially involves going to here:




https://github.com/milq/milq/tree/master/scripts/bash



and running 3 scripts:



install-additional-cli-software.sh



install-additional-gui-software.sh



install-opencv.sh




This works like a champ with Ubuntu 16.04, however I'm not clear on which directory to perform these steps from and therefore have the install located in.



If I open up a terminal by default it goes to the home directory for the current user, in my case for example that would be "/home/cdahms"



This seems like a very bad place to locate an OpenCV download/build/install (still not sure which to call it, again, relatively new to Linux) for at least the following reasons:



-The home directory is often used for other stuff and locating OpenCV here may result in inadvertent modification at a later time
-If a computer ever has multiple users it does not seem to make sense to place OpenCV in a certain user's home directory
-A home directory does not seem like a proper directory for a software install generally speaking



Based on this:




https://github.com/opencv/opencv/blob/master/CMakeLists.txt



line 41:



set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Directory")


I'm under the impression that I should cd to "/usr/local", then run the above OpenCV install script. Is this correct? Where are most Ubuntu/OpenCV users installing to?




Note: I should mention that I'm NOT using the apt-get package "libopencv-dev" since that is on OpenCV version 2.4.9 currently, which is about 3.5 years old now. Does anybody have any ideas as to why this package is not updated more often?

Ubuntu 12.04, loading i801 I2C driver



I have a device connected to the following bus (I will discuss it once I explain what I'm trying to achieve), and I'm trying to debug the driver itself (generally it was working for earlier specifications and ubuntu versions and I'm trying to update the driver to work on the newest specification, in order to do that I must get it working on a newer version of ubuntu and once I have the infrastructure I will start developing) - I am trying to load the i2c bus driver i801 to no success. There are no /dev/i2c-x available, I tried to compile it as a built in as well as a module - none seem to make it available, maybe it shouldn't be there? I do see "something", which is /sys/modules/i2c_i801/drivers/pci:i801_smbus.



The motherboard I use is Intel's DB75EN. When I check the bus with scope I can see once in a few seconds an access to device in 44h. I'm using Torvalds latest kernel (3.14).



Any advice as to how do I load the driver and how does the bus drivers are selected and load?




Thank you!



Well, it seems like my main issue was that there was some collision between addresses I didn't look into. The acpi_check_address_range() from osl.c found a collision. This made the call of acpi_check_resource_conflict() from i2c-i801 probe fail. I commented it and compiled and it worked. To register my driver I also had to send it's address explicitly by:
sudo su
echo > /sys/bus/i2c/devices/i2c-0/new_device (i2c0 is i801)



I think another way to solve it is to undef ENFORCE_RESOURCES_STRICT which the acpi_check_resource_conflict() in osl.c checks before deciding to fail.



P.S




Now I see device 44h when I run i2cdetect.


apt - Stuck when trying to install/upgrade packages




I can't do anything with apt-get because there are a stupid package that blocks it from working. This is what happens:




$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
gimp-help-sv : Depends: gimp-help-common (= 1:2.8-0precise8~ppa) but 1:2.8-0precise16~ppa is installed
E: Unmet dependencies. Try using -f.



Ok, I guess I run apt-get -f install then.



$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
icedtea-netx-common

Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
gimp-help-sv
The following packages will be upgraded:
gimp-help-sv
1 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
Need to get 0 B/29.6 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 803609 files and directories currently installed.)

Preparing to replace gimp-help-sv 1:2.8-0precise8~ppa (using .../gimp-help-sv_1%3a2.8-0precise16~ppa_all.deb) ...
Unpacking replacement gimp-help-sv ...
dpkg: error processing /var/cache/apt/archives/gimp-help-sv_1%3a2.8-0precise16~ppa_all.deb (--unpack):
unable to create `/usr/share/gimp/2.0/help/sv/gimp-tool-crop.html.dpkg-new' (while processing `./usr/share/gimp/2.0/help/sv/gimp-tool-crop.html'): No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gimp-help-sv_1%3a2.8-0precise16~ppa_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



Ok. But it can't be that I've ran out of space?



$ df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 15G 11G 3.1G 79% /
udev 2.1G 4.1k 2.1G 1% /dev
tmpfs 828M 1.1M 827M 1% /run
none 5.3M 0 5.3M 0% /run/lock
none 2.1G 316k 2.1G 1% /run/shm

/dev/sda5 125G 103G 16G 88% /home


This is what happens whatever I am trying to do. How can I get rid of those stupid messages?



All I had to do was to execute:



sudo dpkg --purge --force-depends "gimp*"



The solution was really in this earlier question.


Broadcom Wireless BCM4313 on 12.04 LTS



Using wireless successfully on 2 DELL VOSTRO 3500 laptops.


Both have failed - second one after update today. Sending me here.


Instead of trying various installs and un-installs - can I simply wait for another 1 month?
Will the new kernel solve this issue?

64 bit - 32-bit or 64-bit for Dell Optiplex 780

My Dell Optiplex 780 is blanccoed, how do I know whether I need a 32 or 64 bit ubuntu?

Thursday, March 30, 2017

13.04 - I can't access my session

I have a problem with the authentication page, it keeps sending me back, even if I have the correct password, I've looked for the problem, but no solution worked for me.
the .Xauthority is the problem I guess, because it's empty, the file is already the property of the user.



P.S: if I enter Ctrl +Alt + F1 and login, everything is good, but if I try to execute startx it shows my wallpaper with no panels nor icons.

grub2 - Ubuntu 18.04 grub menu does not appear

Installed ubuntu 18.04 along side with windows 10.
Ubuntu 18.04 grub menu does not appear, and always boots to windows 10.



How can cause the grub menu to appear to select my OS of choice?

Is Ubuntu Touch compatible with my Tablet?

I have recently procured a Proline Tablet of which the specs can be confirmed at http://www.proline.co.za/our-products/tablet/AK888-13/technical-specs/#product.


As can be noted from the specs the tablet currently has Android 4.1 (Jelly Bean) as operating system and as I use Ubuntu 11.01 as my laptop operating system I'd like to convert the tablet to run Ubuntu Touch.


Will this work?

boot - Failed Ubuntu 15.10 installation on UEFI system, how to report this bug

Yesterday I had to try installation of new Ubuntu 15.10 more than 5 times.


I have noticed methods that give me unbootable system on reboot after installation. It says it cannot detect UEFI partition even if it exist and is made during same installation time.



  1. If I upgrade from 15.04 to 15.10 using Bootable CD, if ways half way saying it cannot detect UEFI partition

  2. If I install using Something Else option during installation, it fails on reboot.


The only way for me to get bootable system was to erase whole hard drive and let it make all partition by itself (lost most of my data :'( forgot to backup in frustration)


I am very much confirmed of what I experienced yesterday (whole day) and I am pretty much sure that there is a bug in installer, so how do I report a convincing bug-report to Canonical?

boot - will booting Ubuntu in my samsung np550p5c-s06in brick it?




i bought this laptop in july,2013... and it was manufactured in march... i wanted to dual boot it with ubuntu (using wubi) and windows 8.1(running now). can it harm my computer? if yes then is there any way to prevent it?



First, WUBI is useless on a computer that uses EFI to boot. Don't even bother trying to use it.



Beyond that, the Samsung "bricking" problem has been worked around by new kernel features. I don't know precisely when Ubuntu implemented these features, but I'd be shocked if they weren't available in the latest release (13.10). If you want to be absolutely sure, you can install and use Ubuntu in BIOS/CSM/legacy mode -- but this is awkward unless you also convert Windows to boot in the same way. The least awkward way to mix boot modes is to use my rEFInd boot manager: Install it in Windows, add hdbios to the scanfor options in refind.conf, and install Ubuntu in BIOS mode.


boot - How to make an automatic installation ISO image based on ubuntu-18.04-desktop-amd64.iso

I'm working on making the installation of Ubuntu automatic and without any keystrokes in Dell PowerEdge R640.



Attached ubuntu-18.04-desktop-amd64.iso, then rebooted, and the installation started, but in the following process, there are a lot of steps which need manual keystrokes.



For example, the first pop up window:




Try Ubuntu without installing,
Install Ubuntu,
OEM install (for manufactures),
Check disc for defects.


interface



I just want to select the first option and don't want press any key. I guess I should make some changes based on the original ubuntu-18.04-desktop-amd64.iso.




So the key points are:




  • How to make such an ISO which support automatically installation?

  • Which files need changes?

networking - WiFi not working after latest Ubuntu software update

I have a Dell laptop running Ubuntu 14.04 LTS
I purchased it new about a month ago.
This morning I got a popup about a Software Update available, so I updated, and now the wifi is not working at all.
I checked the networking menu and it shows NO networks detected.
Everything worked just fine until this latest software update.




Here's the output from lspci -knn | grep Net -A2




3a:00.0 Network Contoller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a)



         Subsystem: Intel Corporation Device [8086:0050]


3b:00.0 Unassingned class [ff00]: Realtek Semiconductor Co. ltd. Device [10ec:525a] (rev 01)





I tried the mokutil disable validation as described in the other problem report




sudo apt install mokutil
sudo mokutil --disable-validation




it forced me to create a new password, but still no wifi!!!




Here is lspci -vvnn
3a.00.0 Network Controller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a)
Subsytem : Intel Corporation Device [8086:0050]
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParERR- DEVSEL=fast >TAbort- SERR-



What driver should I have for the Intel 8260? I did lmod and I didn't see anything that looked like a wifi driver...

iso - Error creating custom install of ubuntu 18.04 live server

I'm trying to create a custom ISO of ubuntu 18.04 using the official ubuntu-18.04.1-live-server-amd64.iso as a base image with my own set of preseed files to later create a vagrant box with packer.



I keep getting an error where the /root filesystem is missing (see attached screenshot at the end) and he solutions I've found around on forums use fsck (which is also missing) by loading it from a LiveCD to workaround this problem; but their fix doesn't apply to me as I'm trying to pack a working image.




I tried using the seeder files that come within ubuntu-18.04.1-live-server-amd64.iso but had no luck with that and then I used the following sites as reference to build up my seeder.cfg file:




  1. https://help.ubuntu.com/lts/installation-guide/amd64/apbs04.html#preseed-l10n

  2. https://help.ubuntu.com/lts/installation-guide/example-preseed.txt

  3. https://d-i.debian.org/manual/example-preseed.txt



Here is my preseed file:




d-i debian-installer/locale string en_US.UTF-8
d-i keyboard-configuration/xkb-keymap select us
d-i passwd/root-password-crypted password __PASSWORD__
d-i passwd/user-fullname string vagrant
d-i passwd/username string vagrant
d-i passwd/user-password-crypted password __PASSWORD__
d-i user-setup/allow-password-weak boolean true
d-i time/zone string US/Central
d-i clock-setup/ntp boolean true
d-i partman-auto/method string regular

d-i partman-auto/choose_recipe select atomic
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i pkgsel/include string curl openssh-server sudo git vim
d-i pkgsel/language-packs multiselect
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string \

echo 'Defaults:vagrant !requiretty' > /target/etc/sudoers.d/vagrant; \
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/vagrant; \
chmod 440 /target/etc/sudoers.d/vagrant; \
ln -sf /dev/null /target/etc/systemd/network/99-default.link; \
in-target update-initramfs -u


And the file is used like this from /isolinux/adtxt.cfg:



label bionic

menu label ^Custom Install
kernel /casper/vmlinuz
append initrd=/casper/initrd net.ifnames=0 auto-install/enable=true debconf/priority=critical file=/cdrom/preseed/ubuntu-18.04/preseed.cfg ---


Any help or guidance will be highly appreciated.



Error message

Wednesday, March 29, 2017

upgrade - Can I update directly from Ubuntu 9.10 to 10.10?


I was using Ubuntu 9.10 version and today I want to upgrade to 10.10.


I updated my ubuntu 9.10 with this commands:


sudo aptitude install ubuntu-desktop
sudo aptitude update && sudo aptitude safe-upgrade
update-manager -d

But when I opened update manager I couldn't see button for upgrading to 10.10 (or 10.04) will be available.


How can I upgrade now?



Go to System->Administration->Software Sources, go to the tab Updates, set the Release upgrade to Normal releases then restart the Update Manager, that should solve the problem.


You can't upgrade to 10.10 directly, you'll have to upgrade to 10.04 and then upgrade to 10.10.


12.04 - GRUB doesn't detect Windows XP



I have installed Arch Linux yesterday on /dev/sda1. I used a Live Ubuntu USB to update GRUB, because after I installed Arch, GRUB says: "out of range". So I updated GRUB and all things were fine, but GRUB doesn't see my Windows XP from /dev/sda5.



fdisk -l print:



Disk /dev/sda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders, total 160836480 sectors
Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaeb8aeb8

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 9682943 4840448 83 Linux (Arch root)
/dev/sda2 9684990 160835583 75575297 5 Extended
/dev/sda5 64372797 106446689 21036946+ 7 HPFS/NTFS/exFAT (WIN XP)
/dev/sda6 106446848 108404735 978944 82 Linux swap / Solaris (Ubuntu Swap)
/dev/sda7 108406784 117868543 4730880 83 Linux (Ubuntu root)

/dev/sda8 117870592 160835583 21482496 83 Linux (Ubuntu home)
/dev/sda9 9684992 64372735 27343872 83 Linux (Arch home)

Partition table entries are not in disk order


I tried to install os-prober, but WIN XP isn't shown... I tried to write a entry for windows in /etc/grub.d/40_custom:



menuentry "WIN XP" {
set root='(hd0,5)'

chainloader +1
}


I updated GRUB, but it doesn't work.



So, what I need to do?
Thanks!



GRUB 2 is designed to be more intelligent than GRUB 1, meaning that you don't manually configure the menu anymore. Instead, GRUB now makes you solve the underlying issues that prevented it from detecting the OS, which can be a pain in the smurf.




Now, that said, there are several things that can prevent GRUB from detecting your XP drive. From my research, this usually indicates that there is something wrong with the partition itself. You should try and run chkdsk from windows or a windows repair disk. If those fail, please review the forum post below and see if you are having a similar issue. Most likely, Arch damaged a small boot partition that GRUB uses to detect the OS.



http://ubuntuforums.org/showthread.php?p=9826152



As always, back up everything prior to beginning these steps.



Good luck!
Geary


Ubuntu 13.10 constant crashing



Morning,



I am a new user to ubuntu and Linux in General. I have recently installed ubuntu 13.10 onto my system. This was difficult in its self as I had to make sure it was offline or it would fail on the grub installation constantly. I can get in and use the terminal but if I use anything else it freezes that screen then it freezes my mouse and I am unable to do anything e.g. Access the terminal cancel some programs. Literally nothing, I have to hard reset it. The freezing also happens if I just live boot it from my USB. Any help would be greatly appreciated.



Configuration:
Intel i7 2770k
8gb DDR3
Nvidia 590gtx

2.0tb HDD



Installation was via a USB drive. I used the installation process that was outlined on the ubuntu website however I didn't connect to the internet when installing. I received no errors when installing offline. If I connected before I installed then I would get grub 2 installation error.



In a attempt to try and fix this I made sure everything is updated via the terminal and this was the same with the graphics driver however ubuntu just boots into blackness and all I have is a black cross for a mouse pointer.



First step might be to see what's going on. Try to change the GRUB boot options:




  • While machine is booting press shift


  • When the GRUB boot menu comes up select the second entry

  • There you can choose between normal and recovery boot

  • Select the first entry and press 'e'

  • Now you can remove for example quiet splash
    which will give you more information while booting your machine.



     -- Regards.



@see:





disk usage - "No space left on device" /dev/loop0"



Been using Ubuntu for a couple of weeks now and have encountered a problem. I have the message "No space left on device" and after searching for a while I found that /dev/loop0 is taking up huge space. How do I unmount/empty /dev/loop0?




After command: df -h



greger@ubuntu:/$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 12G 11G 627M 95% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 791M 1000K 790M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 388K 2.0G 1% /run/shm
/dev/sda4 151G 12G 139G 8% /host



Am I right if this command means that a lot of processes is using it?



greger@ubuntu:/$ fuser -m /dev/loop0
/dev/loop0: 1905 1945 1946 1960 1968 1970 1977 1989 1992 1997 2000 2002 2008 2009 2010 2013 2019 2020 2027 2029 2040 2044 2048 2051 2052 2055 2061 2069 2077 2094 2096 2098 2106 2108 2109 2139 2141 2162 2192 2201 2203 2205 2207 2209 2242 2254 2256 2276 2284 2293 2300 2316 2330 2339 2348 2438 2447 2449 2453 2572


What shall I do?




This file: /dev/loop0 is a special type of system file used as a virtual device so it doesn't take up any space and is used to mount image files and ISO files.



As I see, /dev/loop0 is mounted on /, so I assume that this is a Wubi system and in this case something else is using your space.



This command: df -h is for showing you the space left and used on the virtual drive image on the physical drive. You must to use du command to see exactly which files are taking your space.


Tuesday, March 28, 2017

system requirements - Which Ubuntu version is suitable for an Intel Pentium 3 Processor?

My PC has the following specs:



  • Intel Pentium 3 Processor

  • 256 MB RAM

  • 20 GB HardDisk Space


Which Ubuntu version best suits my PC?

installation - How to upgrade from 11.10 to 12.04?

I am using 11.10 and I really want to update to 12.04 but it's impossible.
I cannot see it in the update manager (I did select the option for the releases). I tried sudo update-manager d, and sudo-apt get upgrade and sudo apt-get upgrade release d but nothing. And sudo do-release-upgrade is not working as well! (I get "no release found" message.)


So finally I did put on a live USB and when I boot, I click on install, then it's telling me that I do have 11.10 and I can select for erase all and install Ubuntu 12.04 or I can install along 11.10 and the second option to update 11.10 to 12.04 is grey. I cannot selected it! Why? Am I running out of options?


What else can I do to upgrade to 12.04?

command line - How to install Opera Browser?




I am trying to install opera browser from the terminal. I downloaded the 'debian' installer because it didn't show up in software center.



It completely destroyed my software center - it is frozen and I have no idea how to fix (I have a different thread for that though).



Can I use this thing called synaptic package manager to install Opera? or am I stuck with Firefox?



How do I install Opera Browser?



Synaptic is a graphical interface for Aptitude, the package manager in Ubuntu/Linux. It provides a listing of available software packages that are available to download and install from the repositories listed in your Software Sources. Synaptic is less intimidating to use than apt-get in a Terminal interface for users not used to dealing with the command line.




Preceding commands in Terminal/command line with sudo imparts a restricted root-user ability for performing commands that are not available for standard user accounts.



When in doubt about any basic command in Terminal, you can always man [base command] to access the command manual pages. man sudo will show the manual for sudo, for example. There is also extensive documentation on the Ubuntu website for most commands.



As for installing Opera, it is not maintained in the standard Ubuntu repositories. You have two options:



1) add the Opera repository to your Software Sources as mentioned in the other answer and following the directions in the provided link; or



2) download and install Opera manually.




To install Opera manually, go to the Opera website (www.opera.com) and download it from there. Presuming that you have your downloads set to go to your Downloads Folder, you can run the following in Terminal:



cd /home/your_account/Downloads ;ls -l
Replace "your_account" with your short name; the "ls -l" will list the contents of the Downloads folder. Locate the Opera package file - it should be something like 'Opera_12.15.1748_amd64.deb'.



sudo dpkg -i Opera_12.15.1748_amd64.deb and enter your password when prompted. This will run the Opera installer.



In order to have Opera updated automatically, you should still add the Opera repository to your list of software sources.


13.04 - Dual-booted but cannot access Ubuntu after boot-repair

My main OS is windows 7. Today I installed Ubuntu 13.04 alongside Windows. After successful installation everything seemed right. I could install programs and change system settings etc. However, when I rebooted my computer I had the error: No such device (Grub rescue).
I've looked for solutions on several websites.


I tried using a boot-repair disk but now I cannot access Ubuntu any more. It's like my laptop is not dual-booted any more as I do not have the option to choose the OS on start-up.


Boot info script: http://paste.ubuntu.com/5974211/

Upgrading from 12.04 LTS to 13.04

I am thinking of installing 12.04 LTS on a partition on my hard drive.
When 13.04 matures will it be possible to upgrade to 13.04 from within 12.04 without dragging out the DVD, wiping 12.04 and doing a fresh install?

Monday, March 27, 2017

apt - Keepass2 failed installation during upgrade from 14.04 LTS to 16.04 LTS

I upgraded my laptop from Ubuntu 14.04 LTS to 16.04 LTS. The keepass2 package could not be installed during the upgrade. So I skipped it to have the computer working again.


Today I tried to install keepass2, now using apt-get:


sudo apt-get update
sudo apt-get install keepass2

but I get the following error message:


E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/k/keepass2/keepass2_2.32+dfsg-1_all.deb  Hash Sum mismatch

I also tried to download the package using firefox directly from
http://packages.ubuntu.com/xenial/all/keepass2/download so I could install it using dpkg, but the package seems to have some problem.
Firefox opens a pop up window with the error message:



/tmp/mozilla_srv0/44Gr76dJ.deb.part could not be saved, because the source file could not be read.



When downloading the file with wget and checking its md5sum signature the results is not the expected correct one.


$ wget http://cz.archive.ubuntu.com/ubuntu/pool/universe/k/keepass2/keepass2_2.32+dfsg-1_all.deb
$ md5sum keepass2_2.32+dfsg-1_all.deb
9d21dfe6ff3374e05b84615abc0aa7f3 keepass2_2.32+dfsg-1_all.deb

Do you know how to install this package correctly?

installation - Which version of Ubuntu should I install on an old PC?

I just inherited from my neighbors an old PC with Windows XP as the operating system would try to use it with ubuntu but I'm undecided on the version to install, the two versions that excite me the most are: Kubuntu and Lubuntu. What do you advise me to install? Thanks in advance

grub2 - Recovering GRUB after installing Windows 7?


Possible Duplicate:
How can I repair GRUB? (How to get Ubuntu back after installing Windows?)







I installed Windows 7 after it crashed, and now I am unable to boot Ubuntu. Ubuntu partitions are still there. I tried using Boot-Repair, but it didn't work!

installation - Does Ubuntu 12.04 LTS runs on my computer? I need help

I'm learning on my school about operating system's installation, Ubuntu looks so beauty and fast, even on that old computers.



I have an Emachines L4030, originally with Windows XP Starter Edition, later I upgraded it to Windows XP Professional SP3. Here is my system hardware:




  • Procesador Intel Celeron D355 3.33GHz,256 KB L2 de Cache 533 MHz FSB


  • Video Intel Graphics Media Accelerator 900 con ranura PC-IExpress Disponible

  • HDD 80 GB SATA

  • Memory 256 MB DDR2 SDRAM



I want to learn about another kind of systems, I don't want to throw Windows to the trash because I still need it for school, I was thinking on a partition (20GB for XP- 60GB for Ubuntu) but I don't know if Ubuntu will run as I want to with my hardware



I'M SORRY! I forgot to tell you guys that I upgraded the RAM to 1.7GB, I copied the info from internet and I didn't remember the upgrade. Can I use Ubuntu with that upgrade?

nVidia GeForce 8500GT + Old Monitor = Low resolution

So I've just installed Ubuntu 11.10 on my old PC.
It has an nVidia 8500GT, and the Desktop monitor is pretty old though; like 1998 old. I have installed the drivers using this guide: how-to-install-nvidia-2750907-driver at mygeekopinions.blogspot.com



It's a CRT monitor. Philips 201b4. I guess that's the problem.



Could you help me get 1280by1024 or something? Thanks



xorg.conf




Section "Device"
Identifier "Default Device"
Option "NoLogo" "True"
EndSection


xrandr -q



xrandr: Failed to get size of gamma for output default

Screen 0: minimum 320 x 240, current 640 x 480, maximum 640 x 480
default connected 640x480+0+0 0mm x 0mm
640x480 50.0*
320x240 51.0

system installation - Dell XPS 13 DE won't restart after failed update to Ubuntu 16.04 from 14.04

I tried updating my Dell XPS13 DE (9343) to Ubuntu 16.04 by using the below commands :


sudo update-manager -d

Basically followed this blog post : http://www.omgubuntu.co.uk/2016/04/how-to-upgrade-ubuntu-14-04-to-ubuntu-16-04-lts


It errored out in between and now my machine would neither restart nor shutdown. Tried updating /etc/default/grub without any help. Please help!


Sorry I could not copy the error during upgrade, but for the below command now I get the error:


sudo dpkg --configure -a


insserv: Starting delllctservice depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package hdapsd (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gnome-orca:
gnome-orca depends on speech-dispatcher (>= 0.8); however:
Package speech-dispatcher is not configured yet.
dpkg: error processing package gnome-orca (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-standard:
ubuntu-standard depends on cron; however:
Package cron is not configured yet.
dpkg: error processing package ubuntu-standard (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of keyboard-configuration:
keyboard-configuration depends on initscripts; however:
Package initscripts is not configured yet.
dpkg: error processing package keyboard-configuration (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64-bin:
grub-efi-amd64-bin depends on grub-common (= 2.02~beta2-36ubuntu3); however:
Package grub-common is not configured yet.
dpkg: error processing package grub-efi-amd64-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64:
grub-efi-amd64 depends on grub-common (= 2.02~beta2-36ubuntu3); however:
Package grub-common is not configured yet.
grub-efi-amd64 depends on grub-efi-amd64-bin (= 2.02~beta2-36ubuntu3); however:
Package grub-efi-amd64-bin is not configured yet.
dpkg: error processing package grub-efi-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tlp-rdw:
tlp-rdw depends on tlp; however:
Package tlp is not configured yet.
dpkg: error processing package tlp-rdw (--configure):
dependency problems - leaving unconfigured
Setting up libmaven3-core-java (3.3.9-3) ...
Setting up maven (3.3.9-3) ...
Installing new version of config file /etc/maven/m2.conf ...
Installing new version of config file /etc/maven/settings.xml ...
dpkg: dependency problems prevent configuration of grub2-common:
grub2-common depends on grub-common (= 2.02~beta2-36ubuntu3); however:
Package grub-common is not configured yet.
dpkg: error processing package grub2-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of shim-signed:
shim-signed depends on grub-efi-amd64-bin; however:
Package grub-efi-amd64-bin is not configured yet.
shim-signed depends on grub2-common (>= 2.00); however:
Package grub2-common is not configured yet.
dpkg: error processing package shim-signed (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-core:
xserver-xorg-core depends on keyboard-configuration; however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package xserver-xorg-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
grub-efi-amd64-signed depends on grub-efi-amd64 (= 2.02~beta2-36ubuntu3); however:
Package grub-efi-amd64 is not configured yet.
dpkg: error processing package grub-efi-amd64-signed (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-radeon:
xserver-xorg-video-radeon depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-radeon depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-video-radeon (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of procps:
procps depends on initscripts; however:
Package initscripts is not configured yet.
dpkg: error processing package procps (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg:
xserver-xorg depends on xserver-xorg-core (>= 2:1.17.2-2); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-vesa:
xserver-xorg-video-vesa depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-vesa depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-video-vesa (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of clamtk:
clamtk depends on cron | cron-daemon; however:
Package cron is not configured yet.
Package cron-daemon is not installed.
Package cron which provides cron-daemon is not configured yet.
dpkg: error processing package clamtk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of udev:
udev depends on procps; however:
Package procps is not configured yet.
dpkg: error processing package udev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-amdgpu:
xserver-xorg-video-amdgpu depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-amdgpu depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-video-amdgpu (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-bluetooth:
gnome-bluetooth depends on udev (>= 154); however:
Package udev is not configured yet.
dpkg: error processing package gnome-bluetooth (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-cirrus:
xserver-xorg-video-cirrus depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-cirrus depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-video-cirrus (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-tdfx:
xserver-xorg-video-tdfx depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-tdfx depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-video-tdfx (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of upstart:
upstart depends on initscripts; however:
Package initscripts is not configured yet.
dpkg: error processing package upstart (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-minimal:
ubuntu-minimal depends on procps; however:
Package procps is not configured yet.
ubuntu-minimal depends on udev; however:
Package udev is not configured yet.
dpkg: error processing package ubuntu-minimal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-input-wacom:
xserver-xorg-input-wacom depends on xorg-input-abi-22; however:
Package xorg-input-abi-22 is not installed.
Package xserver-xorg-core which provides xorg-input-abi-22 is not configured yet.
xserver-xorg-input-wacom depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-input-wacom (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of console-setup-linux:
console-setup-linux depends on keyboard-configuration (= 1.108ubuntu15); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup-linux (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-input-synaptics:
xserver-xorg-input-synaptics depends on xorg-input-abi-22; however:
Package xorg-input-abi-22 is not installed.
Package xserver-xorg-core which provides xorg-input-abi-22 is not configured yet.
xserver-xorg-input-synaptics depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-input-synaptics (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of unity-greeter:
unity-greeter depends on upstart; however:
Package upstart is not configured yet.
dpkg: error processing package unity-greeter (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bluez:
bluez depends on udev (>= 170-1); however:
Package udev is not configured yet.
dpkg: error processing package bluez (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-mach64:
xserver-xorg-video-mach64 depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-mach64 depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-video-mach64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of indicator-bluetooth:
indicator-bluetooth depends on bluez (>= 5); however:
Package bluez is not configured yet.
indicator-bluetooth depends on gnome-bluetooth | ubuntu-system-settings; however:
Package gnome-bluetooth is not configured yet.
Package ubuntu-system-settings is not installed.
dpkg: error processing package indicator-bluetooth (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-checkbox-support:
python3-checkbox-support depends on udev; however:
Package udev is not configured yet.
dpkg: error processing package python3-checkbox-support (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xorg:
xorg depends on xserver-xorg (>= 1:7.7+13ubuntu3); however:
Package xserver-xorg is not configured yet.
dpkg: error processing package xorg (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-checkbox-ng:
python3-checkbox-ng depends on python3-checkbox-support (>= 0.22); however:
Package python3-checkbox-support is not configured yet.
dpkg: error processing package python3-checkbox-ng (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-ati:
xserver-xorg-video-ati depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-ati depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
xserver-xorg-video-ati depends on xserver-xorg-video-radeon; however:
Package xserver-xorg-video-radeon is not configured yet.
dpkg: error processing package xserver-xorg-video-ati (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pulseaudio:
pulseaudio depends on udev (>= 143); however:
Package udev is not configured yet.
dpkg: error processing package pulseaudio (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plainbox-provider-checkbox:
plainbox-provider-checkbox depends on python3-checkbox-support (>= 0.22); however:
Package python3-checkbox-support is not configured yet.
dpkg: error processing package plainbox-provider-checkbox (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-sisusb:
xserver-xorg-video-sisusb depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-sisusb depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-video-sisusb (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of console-setup:
console-setup depends on console-setup-linux; however:
Package console-setup-linux is not configured yet.
console-setup depends on keyboard-configuration (= 1.108ubuntu15); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-intel:
xserver-xorg-video-intel depends on xorg-video-abi-20; however:
Package xorg-video-abi-20 is not installed.
Package xserver-xorg-core which provides xorg-video-abi-20 is not configured yet.
xserver-xorg-video-intel depends on xserver-xorg-core (>= 2:1.17.99.902); however:
Package xserver-xorg-core is not configured yet.
dpkg: error processing package xserver-xorg-video-intel (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mountall:
mountall depends on udev; however:
Package udev is not configured yet.
dpkg: error processing package mountall (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of unity-control-center:
unity-control-center depends on indicator-bluetooth; however:
Package indicator-bluetooth is not configured yet.
dpkg: error processing package unity-control-center (--configure):
dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Errors were encountered while processing:
binfmt-support
speech-dispatcher
whoopsie
grub-common
initscripts
kerneloops-daemon
irqbalance
cron
sane-utils
tlp
hdapsd
gnome-orca
ubuntu-standard
keyboard-configuration
grub-efi-amd64-bin
grub-efi-amd64
tlp-rdw
grub2-common
shim-signed
xserver-xorg-core
grub-efi-amd64-signed
xserver-xorg-video-radeon
procps
xserver-xorg
xserver-xorg-video-vesa
clamtk
udev
xserver-xorg-video-amdgpu
gnome-bluetooth
xserver-xorg-video-cirrus
xserver-xorg-video-tdfx
upstart
ubuntu-minimal
xserver-xorg-input-wacom
console-setup-linux
xserver-xorg-input-synaptics
unity-greeter
bluez
xserver-xorg-video-mach64
indicator-bluetooth
python3-checkbox-support
xorg
python3-checkbox-ng
xserver-xorg-video-ati
pulseaudio
plainbox-provider-checkbox
xserver-xorg-video-sisusb
console-setup
xserver-xorg-video-intel
mountall
unity-control-center
Processing was halted because there were too many errors.

Update


The screen got locked after sometime, and each time I enter password it was coming back to the same enter password page. So I did a hard restart ( by long pressing power button)


Now once I start the laptop is stuck in splash screen and the caps lock is blinking constantly.


Please note that I do not care about the data. I want to bring the laptop back to working condition.

Sunday, March 26, 2017

xorg - Can X.org Load Two Different Drivers? (Triple-Head Setup with Intel and NVidia Card)



We want to set up a 3 screens with an onboard intel graphics adapter and an nvidia card.



Both cards are recognized in lspci




01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
00:02.0 Display controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)



And bascially work: If I switch to the console, I see output on the Intel card,
X is only running on the Nvidia card.



But when I type xrandr | grep conn I get only one connected port:




DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)

DVI-I-1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
HDMI-0 disconnected (normal left inverted right x axis y axis)


I am on Ubuntu 12.10 (and XFCE) and installed the proprietary nvidia driver.



I was assuming that X maybe has a problem to autodetect both cards, so I thought the following xorg.conf could help:




Section "ServerLayout"

Identifier "Layout0"
Screen 0 "Screen0"
Screen 1 "Screen1"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection


Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection


Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"

HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 210"

EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection

EndSection


Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"

EndSection

Section "Device"
Identifier "Device1"
Driver "intel"
VendorName "Intel"
BoardName "Internal Intel Graphics"
EndSection

Section "Screen"

Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection



But it is still not working.




  • Is this generally possible to use two different drivers in X ?

  • Is it necessary to create an xorg.conf manually then? (because Ubuntu 12.10 normally works without the xorg.conf)

  • Are there any errors in my xorg.conf?



Yes, X can use multiple drivers. Yours is a very similar setup as what I have. I have an NVIDIA 9800 GT with two monitors connected and an 2nd generation intel card with a single monitor.




I don't see any problems with your xorg.conf. I suspect that you will need to create an xorg.conf if only to tell X to use both nvidia and intel drivers. My xorg.conf looks very much like yours; I have three monitor and screen sections because the nvidia card has two monitors, but I'm pretty sure that X is ignoring those sections.



First, you will want to make sure that xinerama is disabled in xorg.conf (maybe not necessary).



xorg.conf:



Section "ServerFlags"
Option "xinerama" "off"
EndSection



When you do a xrandr --listproviders you should see both cards.



cody@IRIS> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x290 cap: 0x1, Source Output crtcs: 2 outputs: 5 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x48 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 6 associated providers: 1 name:Intel


If you don't see both cards, you probably are missing a driver. (But OP says console is using one and X is using the other, so they probably both work)




You should be able to use xrandr --setprovideroutputsource to add the Intel ports to the list shown by your xrandr | grep conn
In my case I use the names given by --listproviders:



xrandr --setprovideroutputsource Intel NVIDIA-0


If that doesn't add the Intel ports, it may be already connected in a way you can't see it. Disconnect it with:



xrandr --setprovideroutputsource Intel 0x0



Then try to connect it again:



xrandr --setprovideroutputsource Intel NVIDIA-0


All of the output ports should be shown now. And you should be able to add a display with the gnome display settings or with xrandr.



So when I finally got my intel display working, the nvidia displays decided that they needed to pan when I tried to move the mouse to the third display. It would now show the third monitor's content both on the third and second monitor. And the second's original content slid over to the first monitor with the first's content off-screen. It would slide back to normal if I tried to move the cursor over to the first monitor again.




I finally fixed that with another xrandr call:



xrandr --output DVI-I-2 --panning 3840x1200+1680+0/1920x1200+1680+0/0/0/0/0


This call requires knowledge of the physical screen geometry and logical layout. I have a 1680x1050 monitor, a 1920x1200, and a 1920x1080. They are in that order from left-to-right. The right most is connected to the intel card.



This call is setting the panning region on the middle monitor. --output DVI-I-2 happens to be the port connected to my middle monitor.




The first four numbers set the panning region to the total of the middle and right screens. 3840x1200 as width and height and +1680+0 to offset the region to start at top-left on the middle monitor. (Apparently [0,0] is at the top-left of the left monitor)



The next 4 numbers are the cursor tracking region. I set this to only track the cursor on the middle screen. This way when the cursor leaves this screen, it doesn't try to shift the image to follow the cursor.



The last 4 numbers define a border around the panning region. I'm just using the default values here.



Versions of related software I was using:



xorg-server-1.17.4
gnome-3.18.0

xrandr-1.4.3

samba - How to let smb share mount via fstab assign full permission to new created file or directory?

How can we fstab mount a samba share that give permission 0777 (to every samba users in the write list) for new created directory or files? E.g. I created a new directory in client PC (Ubuntu 12.10), and want the directory to have permission drwxrwxrwx in the server (Ubuntu 12.04 LTS).



dir_mode=0777,file_mode=0777 already been set in the fstab, still no effect. I can read/write the mounted smb share, but other users in the write list cannot write to the new directory created by me. The permissions in server is always drwxr-xr-x.



Other option that I have tried 'nounix', 'noperm','uid'. But still cannot get it work.



Any idea?

12.04 - What is the correct location for a maintained virtualenv service?




I will be installing and maintaining a Python 2.7-based server application on Ubuntu server (12.04). The model of maintenance will be to create a virtualenv and install application standard libraries (from PyPI) and custom libraries (bespoke) there, updating them as required. A separate folder holds the "application", which is made up of configuration files and application-specific Python files.



As far as I can tell, the only Ubuntu-provided packages I require are python and python-virtualenv. I may do a custom installation of pew to manage the venv - in which case I will sudo easy_install pew and accept that wherever it goes is correct (pew isn't in the 12.04 repo).



I have a vague awareness that applications should live in /opt or /srv or somewhere like that, and that a server application may live in a different location to a user application. Give all that:




  • where should the virtualenv be located?

  • where should the server application folder be located?




For Django applications, Adam Bard recommends locating your virtualenv at /opt/apps/-env and your application proper at /opt/apps/-env/site. (Many thanks to don.joey for the excellent link.)



Slightly unrelated, I also found Hynek Schlawack's Python Deployment Anti-Patterns and Python Application Deployment with Native Packages to be useful reads.



Based on this, my own review of the Filesystem Hierarchy Standard and an inspection of the /opt folder on my desktop machine, I went with:




  • /opt/virtualenv/ for the virtual environment

  • /opt// for the server application folder




This allows me to create multiple independent virtualenvs and application folders for different applications, versions, etc as I see fit.


command line - Autostart a Python script in an LX terminal

I have a python script which extracts continuous data from an incoming serial string and inserts the fields into an Sql database.



The python script can be run manually from an LX terminal and works successfully whilst the terminal remains open. This is easily tested by examining an associated web site where a PHP script is used to extract the data from the data base and display it in a HTML page.




I have tried a number of techniques to have the Python script executed automatically on restart. The closest I have got is for the terminal to open momentarily, start to run the python script and then close. I have tried delaying the opening on the terminal for a number of seconds to ensure there is no clash with the desktop or other applications starting, without luck.



The techniques that have been tried include:




  1. Creating a .desktop file in ~/.config/autostart to start the python script in an LX terminal. I have also tried delaying the start of the .desktop file via an .sh script with a 10 sec delay (sleep 10).

  2. Starting the Python script using the @reboot command in a cron job.

  3. Using Upstart with a .config file in /etc/init.

  4. Modifying the /etc/rc.local file to run the Python script.




I don't believe this is a permissions issue as the /usr/bin/python ~/user/file.py command and .desktop file can be run manually OK.



Any help will be greatly appreciated.



The environment is an UDOO Quad SBC running Ubuntu on the ARM processor, with the embedded Arduino Due capturing sensor data and transferring the string of data to the ARM processor.

drivers - 1080 GTX Slow performance Ubuntu 16.04


I have installed a new Nvidia 1080 GTX and I tried to install it in Ubuntu 16.04.


1) Installed on other SSD using HDMI (intel)
2) I used sudo apt-get install nvidia-current
3) Select Nvidia Drivers 367.xx (Open source)


When I opened chrome every other window had lag when resizing and moving around.


Other things I tried:


Downloading the Nvidia driver on their website using a ".run" file (Which give me the login loop error)


I do not know what is going on.


In Windows 10 the GPU works very well. I did benchmarks, heating tests and played high demand GPU games.


Thanks for any help in advance.



Install the nVidia proprietary beta driver. Open source drivers, to my knowledge, do not work well currently with Pascal GPUs.


Make sure to select the proprietary driver in Additional Drivers.


If that doesn't work, try disabling all window animations and install CCSM. You might want to tweak some of the OpenGL and Unity settings.


Is the GPU experiencing lag in only Chrome? Do other 3d applications work well? In that case, it could be that Chrome has a compatibility issue.


In that case, go to chrome://flags and enable all flags pertaining to Hardware acceleration. Then go to chrome://gpu and make sure all the flags there have hardware acceleration enabled. You might want to check this out:


https://productforums.google.com/forum/#!topic/chrome/CtKF2BiskT8;context-place=forum/chrome


16.04 - Hide disk information displayed on boot?

I was wondering if there was any way to hide the disc information message (the one that says X blocks available, X blocks safe or something to that effect. Not sure what that's called.) that I get on start-up. Not that the information isn't helpful, it's just a message which causes unnecessary worry by reminding me of when my previous hard drive was failing. So, like, is there a way to either hide this behind a fancy start-up animation, or even have it buried within the wall of text that just confirms the computer's capabilities (again, not sure what it's called. It's the one that just says [OK] USB Keyboard and stuff like that).

14.04 - How do I remove virtualbox.list from etc/apt/sources.list.d/virtualbox.list

I am trying to update software of my Ubuntu 14.04 but there is an error:


malformed line /etc/apt/sources.list.d/virtualbox.list (dist) ; access to this source denied.
E:opening etc/apt/sources.list.d/virtualbox.list-ifstream::ifstream(13: Permission denied)
E: List of source could not be read
E:The package lists or status file could not be parsed or opened.

Could you please help me to remove this virtualbox.list.


I really appreciate yourhelp.

Saturday, March 25, 2017

networking - Installing Wi-Fi driver for Realtek Semiconductor RTL8723DE Device [10ec:d723]

How do I install Wi-Fi drivers for Realtek RTL8723DE device in Ubuntu 16.04?



lspci -v | grep -i network
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723

14.04 - Issues with Nvidia graphics driver and CUDA after apt-get upgrade



I previously installed CUDA 7.5 on Ubuntu 14.04 using the "deb (network)" install from Nvidia. It has worked for a few months, until I ran sudo apt-get upgrade today. After doing this, I encountered the following



$ nvidia-smi
modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='nvidia_352'
modprobe: ERROR: could not insert 'nvidia_352': Function not implemented
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.



Running sudo nvidia-smi is no different.
I am unable to login in GUI mode (it just goes back to the login screen after I enter my password), but I can access the terminal.



I have been able to restore graphical functionality, however I am having difficulty re-installing CUDA after that. Can you please help me?



Restoring graphics



I have found that I can get the graphics to work again by doing




$ sudo apt-get remove --purge nvidia*
$ sudo apt-get autoremove


and then editing /etc/apt/sources.list.d/cuda.list to remove all lines, then doing



$ sudo apt-get install nvidia-352


and rebooting the system. After this, nvidia-smi is working again. However, I still need to re-install CUDA.




Trying to re-install CUDA



I tried restoring the contents of /etc/apt/sources.list.d/cuda.list and then doing sudo apt-get install cuda.
I noticed this error message:



Loading new nvidia-352-352.93 DKMS files...
Building only for 3.13.0-68-generic
Building for architecture x86_64
Building initial module for 3.13.0-68-generic

ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-352.0.crash'
Error! Bad return status for module build on kernel: 3.13.0-68-generic (x86_64)


After doing this, the system is returned to its behaviour at the start.
For example, nvidia-smi prints the error message above, and after building and running deviceQuery I get a similar error:



./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)


modprobe: ERROR: ../libkmod/libkmod-module.c:809 kmod_module_insert_module() could not find module by name='nvidia_352'
modprobe: ERROR: could not insert 'nvidia_352': Function not implemented
cudaGetDeviceCount returned 38
-> no CUDA-capable device is detected
Result = FAIL


I seem to recall that when I first installed CUDA, it would only work if I did it without updating the nvidia-352 package from the Nvidia repositories.
However, now I don't seem to have the option of doing that, because when I run sudo apt-get install cuda it automatically upgrades the nvidia-352 package:




Unpacking nvidia-352 (352.93-0ubuntu1) over (352.63-0ubuntu0.14.04.1) ...


If I try to set the versions explicitly, I get



$ sudo apt-get install cuda-drivers nvidia-352=352.63-0ubuntu0.14.04.1 nvidia-352-dev=352.63-0ubuntu0.14.04.1
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created

or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
cuda-drivers : Depends: nvidia-352 (>= 352.93) but 352.63-0ubuntu0.14.04.1 is to be installed
Depends: nvidia-352-dev (>= 352.93) but 352.63-0ubuntu0.14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.


In fact, if I try to use version 352.63-0ubuntu1 instead of 352.63-0ubuntu0.14.04.1 by doing




$ sudo apt-get install nvidia-352=352.63-0ubuntu1


then this is enough to break the graphical login and cause nvidia-smi to display the error message above.



Diagnostics



$ lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1)


$ dpkg -l | grep -i nvidia
ii bbswitch-dkms 0.7-2ubuntu1 amd64 Interface for toggling the power on nVidia Optimus video cards
ii libcuda1-352 352.93-0ubuntu1 amd64 NVIDIA CUDA runtime library
ii nvidia-352 352.93-0ubuntu1 amd64 NVIDIA binary driver - version 352.93
ii nvidia-352-dev 352.93-0ubuntu1 amd64 NVIDIA binary Xorg driver development files
ii nvidia-352-uvm 352.93-0ubuntu1 amd64 Transitional package for nvidia-352
ii nvidia-modprobe 352.93-0ubuntu1 amd64 Load the NVIDIA kernel driver and create device files
ii nvidia-opencl-icd-352 352.93-0ubuntu1 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.6.2 amd64 Tools to enable NVIDIA's Prime

ii nvidia-settings 352.93-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver


A friend was able to solve it for me!



The solution that he showed me was to (after removing all nvidia packages as before)



$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get install nvidia-364



then download the .run CUDA installer (for me it was cuda_7.5.18_linux.run) from Nvidia and be careful to choose "no" when asked whether you want to install the driver that is packaged with CUDA.


upgrade - Unable to connect with Ethernet under 18.04

I just upgraded 18.04 from 16.04 on my laptop, and the Ethernet connection cannot connect (it only uses the wireless). I have tried the command sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf but it did not work as expected: now if I activate Ethernet connection in parameters, the system disconnect automatically (it is progress, though!).
Anyone had similar issue with 18.04 upgrade?

software installation - How do I install and manage GNOME Shell extensions?

How do I install GNOME Shell extensions?




Is it possible to update, remove and manage the extensions?

How do I reset my Unity configuration?



I've been messing around with Unity and broke something, how do I "start over"?



The following command does not work on newer distributions (as the reply is ERROR: the reset option is now deprecated).




For 12.04 and older



The simplest way is to hit "open a Terminal" or hit Alt-F2 and run the command:



unity --reset

Is it possible to upgrade directly from 15.04 to 16.04?




I am running Ubuntu 15.04 on my laptop. Is it possible to upgrade directly to 16.04?




  • No you can not upgrade from 15.04 directly to 16.04.

  • You have to update from 15.04 over 15.10 to 16.04.



Just as additional information:





  • Upgrading from LTS to LTS works (example: 14.04 to 16.04 would be possible)


AMD Hybrid catalyst driver installation for 14.10

Is there any worked procedure to install catalyst driver on AMD Hybrid with powerXpress on Utopic? I have tried the procedure explained in wiki.cchtml.com/index.php/Ubuntu_Trusty_Installation_Guide modified to buildpkg Ubuntu/utopic, with catalyst Omega 14.12. The installation ended smoothly, but amdconfig --initial -f, failed to configure the driver. It seems that the problem related to powerXpress issue.


Many thanks.


Systems: HP 431, with AMD radeon 7000/6400 and Intel HD 3000. Currently opensoure AMD driver is installed from PPA:oibaf/graphics-drivers.

Friday, March 24, 2017

drivers - Ubuntu 18.04 Boot hangs at PKCS#7 signature not signed with a trusted key

I had a working 16.04 working perfectly (but no bumblebee) and then upgraded to 18.04. Gnome was very laggy so I installed Unity and lightdm but it was still laggy. So I thought something was wrong with video drivers. So I purged nvidia and installed nvidia-driver-390, but I also tried to install bumblebee.



Then I reboot and startup stops with a PKCS#7 signature not signed error. I got into recovery console and removed nvidia-driver-390, but I'm still getting that same error. Had trouble enabling networking, as it would just hang and not return to recovery menu.



Any ideas what's wrong and how I can fix it? I'm thinking about running Nvidia binary installs but my home directory was encrypted and I had to give up last night. Anything else I can do?

boot - Shrink an LVM partition to extend an ext2 partition

I have been struggling with this problem for about 6 hours now and I've searched through multiple forums for parts of the solution. But I always seem to get stuck.


I need to extend my ext2 partition because my boot folder gets full every time I try run any sort of apt-get update and the updates fail. I have an LVM partition that is ~110GB in size that I want to shrink by 10-20GB so that I can extend my ext2 partition.


See GParted Screenshot


I am booting from GParted Live USB to reconfigure the partitions. I ran lvreduce to decrease the size of the drive (hence the 10GB free) but I cannot shrink the space IN FRONT of the LVM partition so that I can expand the ext2 partition. I tried to follow this guide (https://www.howtoforge.com/partitioning_with_gparted) but it seems they can magically shrink in front, and I cannot.


Any help is very much appreciated. Please be patient I'm a bit of a Linux noob.

apt - unmet dependency error on ubuntu 14.04 while installing

whenever I am trying to install php5 or my-sql I am getting below error.



The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).



What's the problem here.

ERROR: NVIDIA driver is not loaded

(I'm aware there are several questions with a similar title but they either don't have answers, are very old or don't apply to my situation.)



I'm using Ubuntu 18.04.2, my GPU is a GeForce 840M and the driver version is nvidia-driver-430 (installed from the Softwares and updates panel)



So I can't seem to use the nvidia gpu anymore. I have no idea what caused this.




sudo nvidia-settings


gives the following output:




ERROR: NVIDIA driver is not loaded ERROR: Unable to load info from any
available system





It does open an Nvidia panel but without the usual settings and just the two PRIME profiles (Nvidia performance mode and intel power saving mode ).



sudo nvidia-smi


gives the following error :




NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA

driver. Make sure that the latest NVIDIA driver is installed and
running.




I've tried a few things like purging and reinstalling the driver or using an older one , with no luck. I've also tried downloading and running the .run driver from the nvidia website but it failed to install.



I'm looking for advice on what to try next to have it working again. Thanks for your help :)



EDIT:




 uname -r



4.15.0-52-generic




 dkms status




nvidia, 430.26, 4.15.0-52-generic, x86_64: installed




 apt-cache policy nvidia-driver-430


nvidia-driver-430:
Installed : 430.26-0ubuntu0~gpu18.04.1
Candidate : 430.26-0ubuntu0~gpu18.04.1

Version table :
*** 430.26-0ubuntu0~gpu18.04.1 500
500 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status

boot - Upgrading Linux kernel without installing grub dependencies?

I installed Ubuntu 16.04 in a system that already uses rEFInd for booting. After installation, I removed all grub-related packages. However, each time a new kernel release comes out, it tries to install some grub dependencies that I don't need because I don't have grub installed to start with. Here's the commands I'm using:



$ sudo apt-get update && sudo apt-get upgrade
...
Fetched 306 kB in 0s (350 kB/s)
Reading package lists... Done
Reading package lists... Done

Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-headers-generic linux-signed-generic linux-signed-image-generic


So after that I try with a dist-upgrade:



$ sudo apt-get dist-upgradeReading package lists... Done

Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common
linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic
linux-image-4.4.0-72-generic linux-image-extra-4.4.0-72-generic
linux-signed-image-4.4.0-72-generic os-prober
The following packages will be upgraded:
linux-headers-generic linux-signed-generic linux-signed-image-generic

3 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 71.8 MB/71.8 MB of archives.
After this operation, 314 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.


I tried upgrading anyways and removing the grub packages afterwards, however, the package manager fails when configuring and installing grub-pc, just like in this thread.



Is there any way I can upgrade the Kernel without installing those grub dependencies?

openstack - libvirt-python stopped installation of devstack using stack.sh under Ubuntu 12.04

I'm trying to install devstack under Ubuntu 12.04 using stack.sh, but I've got stuck at this error. Current python version is 2.7.3


Followed standard method of devstack installation procedure (all-in-one single machine) starting from sudo apt-get update. Let me know if further information is needed.


Reading state information... Done
libvirt-bin is already the newest version.
libvirt-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 213 not upgraded.
+ real_install_package libvirt-bin libvirt-dev
+ is_ubuntu
+ [[ -z deb ]]
+ '[' deb = deb ']'
+ apt_get install libvirt-bin libvirt-dev
++ set +o
++ grep xtrace
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ sudo DEBIAN_FRONTEND=noninteractive http_proxy= https_proxy= no_proxy= apt-get --option Dpkg::Options::=--force-confold --assume-yes install libvirt-bin libvirt-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libvirt-bin is already the newest version.
libvirt-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 213 not upgraded.
+ pip_install_gr libvirt-python
+ local name=libvirt-python
++ get_from_global_requirements libvirt-python
++ local package=libvirt-python
+++ grep -i -h '^libvirt-python' /opt/stack/requirements/global-requirements.txt
+++ cut -d# -f1
++ local 'required_pkg=libvirt-python>=1.2.5 '
++ [[ libvirt-python>=1.2.5 == '' ]]
++ echo 'libvirt-python>=1.2.5'
+ local 'clean_name=libvirt-python>=1.2.5'
+ pip_install 'libvirt-python>=1.2.5'
++ set +o
++ grep xtrace
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ sudo -H http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS=file:///opt/stack/.wheelhouse /usr/local/bin/pip install 'libvirt-python>=1.2.5'
Collecting libvirt-python>=1.2.5
Using cached libvirt-python-1.2.16.tar.gz
Building wheels for collected packages: libvirt-python
Running setup.py bdist_wheel for libvirt-python
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-XwqhSl/libvirt-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp2i3WSspip-wheel-:
running bdist_wheel
running build
/usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
error: command '/usr/bin/pkg-config' failed with exit status 1
----------------------------------------
Failed building wheel for libvirt-python
Failed to build libvirt-python
Installing collected packages: libvirt-python
Running setup.py install for libvirt-python
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-XwqhSl/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_Rbsrk-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
/usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
error: command '/usr/bin/pkg-config' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-XwqhSl/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_Rbsrk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-XwqhSl/libvirt-python
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 1 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ [[ -z /opt/stack/logs ]]
+ /home/test/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2015-06-11-125626.txt for details
+ exit 1

11.10 - Can't boot from USB after installing Ubuntu

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