Wednesday, May 2, 2018

12.04 - GRUB complains of "no such partition" after installing 12:04


I have just installed 12.04. I previously had 11.10 installed, with /dev/sda6 as the install partition mounted at / and with /dev/sda1 mounted at /home. When installing 12.04, I duly selected the same options, with no reformatting. I selected /dev/sda6 as the bootloader partition. I was warned, as expected, that the system files on /dev/sda6 would be deleted.


After reinstalling, I can't get past GRUB: selecting the main boot option, or the recovery mode option, both give me the error "No such partition", and the option to go back to the main GRUB screen.


What's going on here? What partition is it saying doesn't exist? And obviously, how do I fix this?




Edit 1:


I get the error three times; it looks like:


error: no such partition.
error: no such partition.
error: no such partition.
Press any key to continue ...

This also happens with the "Memory test" boot options.


Entering the command line and running ls gives me the same error.



To repair the Grub bootloader, try these steps.


1 - Live CD


First, you'll need to boot from a Ubuntu Live CD.


2 - Repair the bootloader


Open a terminal from the Live CD, and run the following commands:


sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair

After a few seconds, Boot Repair's main window will open.


Click on Recommended repair.


You're done!


Reboot to test everything out.


If everything went well, you should be up and running now. If not, keep going.


Command-line version


If the above fails, you can also use the command line (from a Live CD) to reinstall Grub.


Important: Replace sda1 with the partiton that contains Ubuntu and sda with the drive that contains Ubuntu's partition


sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
*edit* at this point, also ensure that if /usr and /var are on seperate partitions that you mount them to /mnt/usr and /mnt/var
*edit 2* whithin the chroot you need to have /dev /run and /proc available for update-grub to work, use the following to acheive that: for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
sudo chroot /mnt
sudo update-grub
sudo reboot

bug reporting - Where to report issues of snaps?


I don't seem to find any information where to report issues with snaps, i.e. applications which are installed through snap install instead of the system package manager apt-get.


Since most bug reports on launchpad.net are simply ignored, but still make sense to be filed, I'd like to make sure that I'm not doing something even more hopeless when filing bugs with ubuntu-bug or manually on launchpad.net.


The fact that apport says that a package isn't installed shouldn't say too much because it usually takes years until this tool is upgraded to reflect changes in the requirements.



When you run $ snap info you will see a contact field. This will tell you how to talk to the developer, or where can you find that information.


$ snap info parity
name: ...
summary: ...
publisher: ...
contact: https://parity.io
[...]

Dual boot Windows 10 and Ubuntu 16.04 no grub loader selection

I have problem with dual boot on Windows 10 and Ubuntu 16.04. The hard disk, I am trying to use, was configured on another Lenovo G50 series, with Windows 10 as first OS. At that time, I managed to dual boot both OS without a problem. Recently, the laptop was damged, therefore, I decided to try to use the Hard disk in another Laptop - Lenovo -thinkpad (Enhanced Experience 2.0) with boot mode: UEFI. The laptop started well direct to Windows 10, without Grub loader option for selection.



I did the following steps to install Ubuntu 16.04.
Step 1: Accessed BIOS setup (ThinkPad Setup) by pressing Fn + F1 Key.
For this laptop there is STARTUP tab: with the following options.
A. UEFI/Legacy Boot [Both- system will boot by following UEFI/Legacy Boot Priority setting, UEFI only and Legacy Only. I selected Legacy only so that I can boot from DVD and install Ubuntu, because without it boot on Windows 10.
B.UEFI/Legacy Boot priory.



Problem:
During partition, for the last option it asked to create a partition for Reverse BIOS boot. I did that, however, After rebooting and returning to Both option in A, boot direct to MS Windows 10, without selection option.

Tuesday, May 1, 2018

Can't boot into Ubuntu in Windows 10 / Ubuntu dual boot



I installed Ubuntu on a Dell XPS 13 laptop that had Windows 10 preinstalled on it. I installed it from a USB flash drive on a partition.
When I boot my computer I can only boot into Windows 10 and Ubuntu is nowhere to be seen.



If I boot into my USB then I can see that Ubuntu is installed, but I can't get to it from the BIOS boot menu.




Disable the hibernation mode and Fast Boot in Windows.
Open command prompt as administrator and execute :



powercfg /h off  


Open the legacy version of the Windows Control Panel (not the modern version).
Select Energy Settings, enable show hidden settings and uncheck Fast Boot.
After having done this - shutdown the computer completely - do NOT reboot.
Boot into the BIOS and select Ubuntu as the default operating system to boot.



Update :




In case there is no Ubuntu entry to be found in the BIOS / UEFI settings,
re-install the GRUB boot loader to your Ubuntu installation in EFI mode.
Boot from the Ubuntu installation media - open a terminal and execute:



sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub



Note:



sdX = disk | sdXX = efi partition | sdXXX = system partition



To identify the partition numbers use GParted - it is included in the Ubuntu installation media.
Boot into BIOS and select Ubuntu in UEFI settings to be the default operating system to boot.


Is canonical reconsidereing support for android apps on ubuntu touch?

It seems like we are going to have ubuntu touch powered devices in the near time.


Even though I'm willing to have an ubuntu powered device I find it pretty hard for a new competitor in the mobile arena to succeed if it doesn't have lots of apps, and the only way I see this could be achieved in the near feature is supporting android apps. Besides, there are some apps that are clear deal-breaker for many, like whatsapp, facebook, etc.


Jolla seems to think so, and being open source Ubuntu Touch could benefit from all their work supporting android apps.


So I was wondering if Canonical is considering adding support for android apps.

compiling - C compiler cannot create excecutables



When I am trying to install a openvpn from a tarball ,
following error occurs




checking whether the C compiler works... no

configure: error: in `/home/shubhamd/Downloads/openvpn-2.3.2':
configure: error: C compiler cannot create executables




See `config.log' for more details




and the config.log is as follows :




This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by OpenVPN configure 2.3.2, which was

generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = shubhamd
uname -m = x86_64

uname -r = 3.11.0-12-generic
uname -s = Linux
uname -v = #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown

/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin

PATH: /bin
PATH: /usr/games
PATH: /usr/local/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2873: checking for a BSD-compatible install

configure:2941: result: /usr/bin/install -c
configure:2952: checking whether build environment is sane
configure:3002: result: yes
configure:3143: checking for a thread-safe mkdir -p
configure:3182: result: /bin/mkdir -p
configure:3195: checking for gawk
configure:3211: found /usr/bin/gawk
configure:3222: result: gawk
configure:3233: checking whether make sets $(MAKE)
configure:3255: result: yes

configure:3339: checking build system type
configure:3353: result: x86_64-unknown-linux-gnu
configure:3373: checking host system type
configure:3386: result: x86_64-unknown-linux-gnu
configure:3418: checking for style of include used by make
configure:3446: result: GNU
configure:3517: checking for gcc
configure:3533: found /usr/bin/gcc
configure:3544: result: gcc
configure:3773: checking for C compiler version

configure:3782: gcc --version >&5
gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3793: $? = 0
configure:3782: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.1-10ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8)
configure:3793: $? = 0
configure:3782: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.

configure:3793: $? = 4
configure:3782: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3793: $? = 4
configure:3813: checking whether the C compiler works
configure:3835: gcc conftest.c >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory

/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3839: $? = 1
configure:3877: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "OpenVPN"
| #define PACKAGE_TARNAME "openvpn"
| #define PACKAGE_VERSION "2.3.2"

| #define PACKAGE_STRING "OpenVPN 2.3.2"
| #define PACKAGE_BUGREPORT "openvpn-users@lists.sourceforge.net"
| #define PACKAGE_URL ""
| #define OPENVPN_VERSION_RESOURCE 2,3,2,0
| #define PACKAGE "openvpn"
| #define VERSION "2.3.2"
| /* end confdefs.h. */
|
| int
| main ()

| {
|
| ;
| return 0;
| }
configure:3882: error: in `/home/shubhamd/Downloads/openvpn-2.3.2':
configure:3884: error: C compiler cannot create executables
See `config.log' for more details



How to fix the error ?



It's likely you need to install the libc6-dev package. The errors you see indicate the linker (ld) is unable to link against the C library (and the object files it mentions, crt1.o for example, are part of this package).



I suggest you do sudo apt-get install build-essential, it will install, well, the essential tools and packages for basic builds to work. build-essential is a meta-package, which doesn't install any files of its own but depends on the required packages, so it's a safe bet to install it.


apt - how to install gvfs-mtp backend in ubuntu 12.10



as given on the launchpad page here




PPA description



These builds of gvfs have my native mtp backend backported from gvfs master. Use this to easily access MTP based devices with Nautilus.
13.10 (Saucy) and newer versions of Ubuntu contain all of these changes, so you don't need to use this ppa any more.



i'm using ubuntu 12.10 ,so I decided to install this package.



so i first added the repository.




aditya@aditya-desktop:~$ sudo add-apt-repository ppa:langdalepl/gvfs-mtp




and then





sudo apt-get update




But i don't know what and how to install to get that package



please tell me.



It updates the existing gvfs-backends package with the newer one, which contains the GVFS-MTP backend. Just let the package manager install the updated packages and you're good.


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 (...