Monday, December 31, 2018

drivers - RX 460 in Ubuntu 14.04, 16.04, 16.10 not working


I installed my XFX 2GB RX 460 Graphics card last week and it's been working good on Windows 7, however, when I tried installing the drivers in 16.10 I found out they're not out there yet (had a login loop) and 16.04 drivers AMDGPU-Pro are not compatible with 16.10 so I downgraded to 16.04.


When I tried logging in with 16.04 I found out my drivers weren't compatible either I can only access TTY, I can't even see the login screen, tried using ubuntu-devices and other fixes I found on the web but nothing worked. Lastly I read that you had to downgrade to 14.04 so I did but I found the same error, a window telling me my drivers are not compatible and that I will use simple graphics for one session, but the only thing it shows is the tty console, tried doing apt-get update and apt-get update from there but it didn't work either.


I'm writing from my Windows partition right now, I really wanted to be able to run my graphics card in Ubuntu so I could get rid of Windows for good but I think it won't happen.


I don't know what else to do to at least try get some visual enverioment in Ubuntu with my new RX 460.


Hope someone with the same problem has fixed it and is willing to help. Thanks in advance.



The only way I've had success in getting the sound to work through HDMI is with the amd-pro driver from AMD.


I've had success with kernel's 4.4 and 4.8 only, 4.9 seems to break the "HDMI" sound again.


As ankit7540 pointed out, that page has step by step instructions for installing on Ubuntu ie.


tar -Jxvf amdgpu-pro-16.60-379184.tar.xz


cd amdgpu-pro-16.60-379184


./amdgpu-pro-install -y


Also, once installed you will need to be added to the "video" group or the sound wont actually work.


sudo usermod -a -G video $LOGNAME


A restart is required after to make everything work.


This only works for Ubuntu and its various flavors, I tried on Mint and it wont install.


The other thing I noticed if your accessing the AMD pages via Google is, if you download the pro driver from the front page rather than the instructional page you will get an older driver 16.40.


This link gives you the latest version 16.60...


https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-16.60-379184.tar.xz


One more thing to note is, if you really want to use the open source driver you will need to wait for kernel 4.11 or use some trickery, mentioned here...


https://forums.linuxmint.com/viewtopic.php?t=238028#p1268156


Dual Booting UEFI After bad Install, What happens to old Boot Loader?

The short: I accidentally installed 32bit 12.04, and choose to 'install boot loader' on the dev/sda (or 'main' the one that has all the memory) drive. Both windows and ubuntu work, only after changing BIOS/UEFI settings. But I want to redo the install and get 12.04 or 14 on the UEFI, will the previous installing of the 'bootloader' get in the way?



The long: Due to the foolish misreading of the ISO versions (64-bit PC (AMD64) desktop CD made me choose the intel option without reading all the descriptions, my first mistake) I tried to install 32-bit 12.04 on a new laptop. After hours of trying different USB setups and UEFI adjustments, it finally booted from the USB drive when changing the settings to legacy mode support. I had done research (not enough though) on where to put the 'bootloader' so that I wouldn't have to modify the MBR or other bios stuff afterwards, they advised me to put it on the overarching dev/sda that encompasses the whole system. So I did just that, made a decent partition for ubuntu, ran the install. Found out that it would not boot windows even though windows boot loader appears in the GRUB list of bootable options. I got around that issue but going back to the UEFI/BIOS setup and changing the option back to UEFI. So apparently the computer tries to boot up any UEFI loaders first. This is a kindof shoddy work around since I don't want to be shutting down, changing Boot Setup to legacy/UEFI, then restarting to get to a different OS. Plus that can't be the best for the computer.




I am aware if I re-install with 64bit ubuntu I will erase the partition with the 32bit, but I don't know what will happen to the GRUB/Bootloader thing I installed to the main partition.



Can I just ignore it?



Other details:
Lenovo ideapad Z710 laptop

partitioning - Ubuntu 1 TB hard disk format

I have external hard drive which is 1TB.



I was using Ubuntu 16.04 and it was working fine
then i have replace with internal hard disk to solid state drive[SSD] and that also working fine.



but now i want to use my laptop internal hard disk which 1T as external hard drive and i am unable to do that.



i have tried to format 12 to 13th times but i am unable to do that.




Error message
Please help me out.

shotwell - Help reporting bug using ubuntu-bug



Shotwell trash is not emptying in to or not appearing in the system trash. I'm trying to report this as a bug following https://help.ubuntu.com/community/ReportingBugs so in the Ubuntu menu I type ubuntu-bug shotwell which opens Shotwell as usual and then what? What do I do next?



enter image description here



Is not working for you because you type this in the DASH and not in the Terminal or in the Run-Command-Prompt(Alt+F2).




So, to report a bug about shotwell Open terminal (Ctrl+Alt+T) and type:



ubuntu-bug shotwell


than, press on Send button in the Send problem report to the developers pop up window



Done.







More info can be found here: https://help.ubuntu.com/community/ReportingBugs


Ubuntu 16.04 - Did 'apt-get upgrade' and now Intel Graphics Driver doesn't work

I have a Optimus Laptop, MSI GS70 Stealth Pro 6QE. It comes with a Intel® HD Graphics 530 (CPU Integrated) and a Nvidia GeForce GTX 970M 3GB GDDR5.




After upgrading Ubuntu 16.04 and switching from Nvidea drivers to the intel one, I am unable to enter my desktop.



It freezes after I type my password and press 'enter'. (I can't even access the terminals with 'Ctrl-Alt-F1')



I installed the Nvidia graphics from the Graphics Drivers Team PPA and the Intel Graphics from their own website.

Ubuntu 10.04 doesnt boot


Possible Duplicate:
I can't boot into a usable system anymore. What should I do?







I am using ubuntu 10.04-03 in virtual box.



All of a sudden today it doesn't boots up and shows (initramfs) prompt as shown below. Is there anyway I can fix it as I got really important data in it.



enter image description here

apt - Unable to locate krb5-admin-server krb5-kdc




I am trying to install Kerberos5 on my ubuntu-14.10-server-64bit, then I type the command:



sudo apt-get install krb5-admin-server krb5-kdc



I receive



E: Unable to locate package krb5-admin-server
E: Unable to locate package krb5-kdc




What can be the problem?
Thanks



I post this as an answer because it solved the problem.



Do a sudo apt-get update to update the repos cache before sudo apt-get install


dual boot - Grub 2 detects incorrect partition for windows

Windows 7 is present on /dev/sda3, but grub 2 detects Windows 7 on /dev/sda1. How can I configure Grub 2 so that it will always point to /dev/sda3 for Windows 7, even if later on I do a sudo update-grub?



Windows 7 is present on sda3, but during installation it created a small 100mb partition as sda1, which Grub 2 is pointing to. But Windows 7 on my machine can boot from /dev/sda3, not /dev/sda1.

Sunday, December 30, 2018

apt - How do I see what PPA or PPAs are installed or in use

Sometimes I install good guy PPAs because someone on askubuntu says to use add-apt-repository . Later I wonder, where have they gone?



Where can I find a list of Personal Package Archives that are trusted? Shell solutions preferred, but GUI solutions still useful.




I found /var/lib/apt/lists , which is a start .






See also related , what are the security risks in leaving trusted PPAs in place ?

server - Mount ecryptfs automatically after ftp login

How can I get my ubuntu server 12.04 to automatically mount the encrypted home partition after an ftp login? It will automatically mount after an ssh login and I can then access the encrypted information over ftp but I don't want to have to log into ssh every time I want to use ftp.

compatibility - Is Ubuntu16.04 LTS compatible with HP Pavillion dv6 i7


  1. I need to know whether my HP Pavilion dv6 i7 quad core will run Ubuntu 16.04 LTS smoothly?

  2. Whether it will support all my HP laptop functions and vice versa?

  3. How resource intensive is Ubuntu 16.04 LTS compared to Windows 8.1?




I haven't as yet ever used Ubuntu, but am excited to try, it look spectacular. Please give me feedback in laymen's terms I am a newbie to Ubuntu.

Is there a way to recover formatted hard disk with Windows when using Ubuntu 17.04?

I installed Ubuntu on my PC and by accident it formatted my whole hard drive. I can pick the hard drive up with Windows and everything but its basically formatted. Is there a way I can restore it using Ubuntu?

Saturday, December 29, 2018

Download 13.04 iso with wget


I am trying to build a virtual machine running Ubuntu 13.04 on a server running 12.04. I don't have any GUI. How can I download the iso file to 12.04 server using wget? I want to download the 13.04 server edition 64-bit.



You can find the links to all the images for Raring on this page.


To download 13.04 64-bit Server Edition, run the following command:


wget http://releases.ubuntu.com/raring/ubuntu-13.04-server-amd64.iso

You may further refer the manpage for the wget command Manpage icon


usb - Ubuntu won't start with "device descriptor read/64, error -32", what does this message mean?



I am running Ubuntu 12.04 on my computer. Yesterday I tried to change the splash screen according to the instructions here here.Then I installed gdm. After that I restarted the computer and the splash screen was changed. I enabled automatic login. Then I restarted again and went into windows 7 and again came back to Ubuntu.
This time Ubuntu was stuck up at a black screen with the following message:




                                    Ubuntu 12.04  
....*starting virtualBox kernel modules [OK]
*stopping cold plug devices [OK]
[OK]*Stopping log initial device creation
[OK]*Starting configure network device security
[OK]*Starting save udev log and update rules
[OK]*starting configure virtual network devices
[OK]*Stopping configure virtual network devices
[OK]*Stopping save udev log and update rules [OK]


*Starting Network connection manager wicd
*Starting the winbind daemon winbind [OK]S
aned disabled:edit /etc/default/saned [OK]S
tarting HWActivator *[done]
*Starting TiMidity++ALSA midi emulation... [OK][
23.184121] usb 1-1.5:device descriptor read/64, error -32
[23.359845]usb 1-1.5:device descriptor read/64, error -32



I have reinstalled Ubuntu now, but I just want to know what caused the problem.




[23.359845]usb 1-1.5:device descriptor read/64, error -32




This is a hardware error you see it with some USB device. Is at random as it could get.




USB has an over-current protection, which gets triggered when power consumption from the port is too high. (Triggering this error)





You can try unplugging all devices and trying again after a minute or two.



Sources:




networking - Host-only network with Virtual box and Windows host machine: cannot find device eth1




(ANSWER BELOW)



I have problem with implementing Host-Only network in Virtualbox. my host machine is running under Windows 7 Ultimate, and guest OS is Ubuntu Server 12.04.2 64bit.



I configure virtual box host-only adapter.



Virtual box host-only adapter configuration



VirtualBox Host-only adapter - DHCP Server disabled




As you can see DHCP Server is disabled and i try both enabled and disabled but problem still there.



Below is result of



ipconfig /all


from Windows CMD




Windows ipconfig /all Results



Now My Virtual Machine Network Settings



Virtual Machine Network Settings



When i run VM the ubuntu force some problem with network configuration as image below



Ubutnu Booting Network configuration problem




My /etc/network/interfaces file as below:



/etc/network/interfaces content



When i restart networking service, show "Cannot find device eth1, Failed to bring up eth1 as below:



restart networking error



if i go with "ifdown" options, response as bleow:




enter image description here



any help will be appreciated



Thanks in advance






ANSWER




VirtualBox network adapter name on guest machine is not fixed all the time, each time you have disable and enable host adapter from VB prefrences, the network device name post-appended number will increase .
For example, if you disable and enable network host-only adapter five times, the new network name should be eth4, and if it was eight times , network name will should be eth7 and so on.



if you don't know what is your current network device name, use:



ifconfig -a 


it will print all available network adapters ( devices ), find your new name and reconfigure /etc/network/interfaces file with new name.




for DHCP configuration use code below with changing eth5 with your current device name



auto eth5
iface eth5 inet dhcp


And for static ip you can code below: ( you still need to change eth5 with your device name, and also the static ip, no need to change netmask in most situations):



auto eth5
iface eth5 inet static

address 192.168.56.101
netmask 255.255.255.0


I hope this will help somebody else.



It does not need to be eth1. On my virtual machine, it's eth2.



What does ls /dev/eth* print, in your case?


apt - local package repository on custom server can't be authenticated


I successfully setup a local package repository on custom server with the following steps


sudo apt-get install apache2
cd /var/www/html
mkdir debian
cp /path/to/mydeb.deb /var/www/html/debian
dpkg-scanpackages debian /dev/null | gzip -9c > debian/Packages.gz

while on the client


vim /etc/apt/sources.list

add deb http://54.68.121.138 debian/to the end of the file


sudo apt-get update

There shows the below warning message



W: The repository 'http://54.68.121.138 debian/ Release' does not have a
Release file. N: Data from such a repository can't be authenticated
and is therefore potentially dangerous to use. N: See apt-secure(8)
manpage for repository creation and user configuration details.



If I install it by sudo apt-get install mydeb, I will get prompted with



Install these packages without verification? [y/N]



If I enter y I can still successfully install mydeb on the client, but what should I do on the server to make the client thinks the repository is authenticated and verified?



Just in case anyone is interested. The solution to this problem is put deb [arch=amd64 trusted=yes] http://54.68.121.138 debian/ in the end of /etc/apt/sources.list instead of just deb http://54.68.121.138 debian/


12.10 - Ubuntu takes complete hard disk for installation without considering pre-existing partitions

I have recently installed Windows 7 on my laptop with 320 GB HD. Then, I made a partition so now I have 2 primary and 3 logical partitions (all NTFS). I want to install Ubuntu 12.10 so I used ube and Ubuntu 12.10 live. But problem is whenever I try to install Ubuntu from pen drive, it shows that there are no partitions so it wants to partition the whole hard disk.


I searched on web but didn't find suitable a solution. My question is how can I install Ubuntu in this case?

Friday, December 28, 2018

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?

How to solve low performance on Ubuntu 15.10 with nVidia 650M, various drivers?


Last week I installed a SSD and formated my Ubuntu 14.04.3 to install Ubuntu 15.10 with UEFI, root and swap on SSD, /home on HDD, overall disk access speed much better. But the problem is: graphics become so much slow, it freezes on single and network games (tested on XCOM, Civ5, Dota2), timouting on the last.


I emphasize that it not happened on Ubuntu 14.04.3 within the same conditions and same driver.


I tried everything I could, reformatted and reinstalled Ubuntu 15.10 two times and I would thank you very much if you have any clue how to solve this problem.


nvidia-352 was apt-got with xorg-edgers PPA added, all times.


I gave up on Optimus technology a long time ago, my notebook is used as a compact wired desktop, so, no problem, let the battery go.




  • $ lspci | grep VGA


01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M] (rev a1)



  • $ cat /etc/X11/xorg.conf | grep version


version 352.63 (buildmeister@swio-display-x64-rhel04-11) Sat Nov 7 22:00:19 PST 2015


http://pastebin.com/1hNmsxPT



  • $ ubuntu-drivers devices


== cpu-microcode.py ==
driver : intel-microcode - distro non-free


== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
vendor : NVIDIA Corporation


model : GK107M [GeForce GT 650M]


modalias : pci:v000010DEd00000FD1sv000014C0sd00000066bc03sc00i00


driver : nvidia-304-updates - distro non-free


driver : nvidia-340-updates - distro non-free


driver : xserver-xorg-video-nouveau - distro free builtin


driver : nvidia-340 - distro non-free


driver : nvidia-304 - distro non-free


driver : nvidia-352-updates - distro non-free


driver : nvidia-352 - distro non-free recommended



Tried all seven drivers, same problem.


Typical conditions with Sync to VBlank enabled. Some FPS drops on glxgears, but during freezes it won't drop enough to justify, stays almost the same. Temperature is normal. CPU is a Intel Core i7-3630QM.


http://imgur.com/KVCgFhI



Generally you should use the drivers from the official Ubuntu repositories. But when there are problems with the drivers ... you can install the more current drivers from the GPU Drivers PPA.


Uninstall the currently installed NVIDIA drivers and remove the xorg-edgers PPA.


Open a terminal and execute :


sudo apt-get purge nvidia*
sudo apt-get install ppa-purge
sudo ppa-purge ppa:xorg-edgers/ppa
sudo reboot

You can install the latest official NVIDIA drivers that support GEFORCE GT 650M.


Open a terminal and execute :


sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot

Ubuntu 18.04 and nVidia. Stuck after boot



I'm installing Ubuntu 18.04 on my notebook.



When i boot live from USB everything works fine. Then i start installation progress. And everything it's okay.



After rebooting, i get stuck just after I insert login data.
Somethimes before, sometimes after. It looks like a graphical issue.




I looked for a solution, but everything tried didn't work.
Any hint?



Thank you.



EDIT:



Ubuntu gets stuck at boot screen (freeze, not black) after attempting brightness fix for NVIDIA card




Ubuntu freezes during boot



These solution didn't work. :(



I found a solution on Ubuntu Forums.



These were the steps to solve the issue (post #3).




  1. Turn on the laptop and press shift or esc during boot to show the GRUB menu


  2. Press e and edit the line starting with linux adding nouveau.modeset=0

  3. Press F10 to boot

  4. Once logged in successfully, go to Activities (top left corner) > Drivers and install suggested nvidia driver.



After these steps everything works perfectly.



I have no idea why it worked. I understand that missing drivers where causing the issue, but can someone elaborate so I can completely understand why this solution actually worked?



The solution was proposed for Ubuntu 16.04. I had ubuntu 16.04 and worked like a charm on my laptop, but Ubuntu 18.04 introduced the same issue. Why?



boot - Can I install Ubuntu without losing my files when i replace windows

Currently Im dual booting Ubuntu and Windows 7 an old desktop but its taken some hits over the years and now wont boot into windows anymore. And I figure maybe its time I get rid of windows completely on this computer and run Linux entirely on its own to free up more disk space. So I was was wondering if it would be possible to reinstall Ubuntu to override windows without losing my current Ubuntu system (Ie; Pictures, files, programs. ect,) OrIf if there was any way I could expand the Ubuntu partition of my hard drive and give myself more space.

16.04 - Do I have any graphics drivers?

Here's a picture of my drivers



04:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce
GTX 650] (rev a1) Subsystem: ASUSTeK Computer Inc. GK107 [GeForce GTX
650] Kernel driver in use: nouveau



I don't see any graphics drivers. I have a GeForce GTX 650 graphics card.


Is this a common problem? Please help me, I need different drivers to install Steam.

mount - Mounting samba share with root priveleges 12.10

How to permanently mount samba share with root priveleges? I've used this FAQ but still getting the same error.
The point is i don't want to send credentials in plane text.



User credentials file:



username=USER
password=password
domain=sanctuary



smb.conf:



    [global]
valid users = USER
browsable = yes
guest ok = no
read only = no
available = yes
public = no

writable = yes
comment = USH
security = user
workgroup = Sanctuary
create mask = 0777
directory mask = 0777
unix password sync = yes

[share]
comment = archive

path = /share
directory mask = 0777
create mask = 0777


fstab line:



fstab: //192.168.1.50/share /media/share cifs credentials=/etc/samba/user,rw,uid=USER,iocharset=utf8,user,noauto,file_mode=0777,dir_mode=0777 0 0



error:



mount: wrong fs type, bad option, bad superblock on //192.168.1.50/share,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so



From connect to server menu in nautilus share mounts fine and dandy, but... again no root.



Update:



After simplifying a line in fstab to



fstab //192.168.1.50/share /media/share cifs credentials=/etc/samba/user,uid=1000,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0


i get the error:




mount: only root can mount //192.168.1.50/share on /media/share


Update 2



Actually i got share mounted with:



sudo apt-get install cifs-utils



But i still cannot write inside it - is says Permission denied



Update 3 SOLVED



Source of proublem was messed up/non-tweaked permissions



Execute



sudo chmod 777 /share



on server helped.

Thursday, December 27, 2018

Re-installing ubuntu to format my dual-boot system configuration?

I decided to try out the new windows 8 (then 8.1) when buying a new computer to be able to run microsoft software cleanly. I still installed ubuntu as a dual-boot system (splitting my drive's space 50/50). Now I want to re-install ubuntu and to get completely rid of windows (and never look back). Now, that isn't much of a problem. My question is simple:


If I decide to install ubuntu once again, and extending the installation to the entire hard drive (if that is still possible), would my partitions (that have been divided previously for the dual-boot) "fuse" back together? Meaning firstly that I'd get all of my hard drive space back on ubuntu.


Technically, I'd say yes. But most of the questions ask how to delete one OS while keeping the other boot. I want to know if I can do that while taking a simpler, more direct way or if I have to go through deleting the OS before reinstalling ubuntu anyway. I haven't even looked at what I can do with my grub repair for that matter, and I am pretty sure it can do what I want through another way. Yet, I find that format-installing ubuntu is the 1) simplest, 2) easiest, but also 3) the most complete/reassuring way to erase my dual-boot system.


I'm clearly not an ubuntu guru.

upgrade - Failed 12.04 Install, Cannot Boot



Was running 11.10, but decided to upgrade to 12.04. After more than 12 hours, my Dell Inspiron 15R was,just hanging. Could not do anything. So tried to reboot, all I get now is flashing screen on boot, but nothing more. Tried hitting shift before ubuntu loads & then the 1st option but all I get is a purple screen. So tried recovery & can get to a prompt, but how to I now 'recover' so that I can boot (load grub)?


I managed to get it all up & running after remounting / as rw, then setting up my network and finally running dpkg --configure -a.

How to install Nvidia driver?

First of all after installation of Ubuntu 14.04 I was having problem - system freezes after few minutes of work.


I installed nvidia-current driver, it helped. I decided to install something more newer(I want to use GPU calculation with CUDA, finally).


I tried "additional drivers" 331. Didn't worked. Black screen after rebooting. I tried to install Nvidia drivers from offical site(last one, 346).


Also black screen or blank. Tried Xorg drivers - recommended 349 and 346. Same...Black screen.


I have GTX 590. I completely new to Linux, so getting lost in it. Why is it happening, whom drivers I should use and how to get it work?

Wednesday, December 26, 2018

usb creator - Create OpenSUSE bootable USB stick from Ubuntu?


OpenSUSE documentation (https://en.opensuse.org/SDB:Live_USB_stick) explicitly states that unetbootin wont work. They recommend using ImageWriter, but I haven't found a version for Ubuntu.


How can I create a bootable USB stick for OpenSUSE from Ubuntu?




@fossfreedom Note that I'm not trying to create a live USB stick. I
just want to boot from the USB stick to install openSUSE. I read those
instructions but it wasn't clear to me if they applied to the
installation image as well as the live image. – becko 10 mins ago



Yes, those instructions do apply to installation USB creation. You will need to know the block device path of your USB stick. Use lsblk to find that out. In this example I am using /dev/sdb but it could be anything else.


Ensure the usb stick is unmounted with


udisksctl unmount --block-device /dev/sdb

and burn the iso image to the USB


dd if=/path/to/downloaded.iso of=/dev/sdX bs=4M

For instance,


dd if=/home/xieerqi/Desktop/openSUSE-Leap-42.1-DVD-x86_64.iso of=/dev/sdb bs=4M

The command will take a long time to complete, so, be patient. You can use this


dd if=/home/xieerqi/Desktop/openSUSE-Leap-42.1-DVD-x86_64.iso of=/dev/sdb bs=4M  && zenity --info --text="DONE"

to show a notification when the burning is over.


bug reporting - How do I report bugs about apport?


I'm having issues with Apport randomly launching, telling me that there was a crash (usually in background applications), and asking if I want to report it. When I look at the application, everything is fine, but Apport seems to think it crashed. Two examples that occurred today are a LibreOffice spreadsheet (which had nothing wrong), and a Chromium download (which finished successfully even though it supposedly "crashed").


My question:
I know how to use apport and ubuntu-bug to send a bug report about a different program, but how can I send a bug report specifically about apport?



I suspect this is actually not a bug in Apport, and that the crashes it told you about are real. Both LibreOffice and Chromium often use multiple processes. (Especially Chromium, which uses at least one separate process per tab.) One can crash, while others continue running. You can have a minimal-impact crash that doesn't affect your user experience.


This is even possible with programs implemented to only ever have a single process running at a time, under limited circumstances, such as if the crash happens as the program is exiting (thus substituting abnormal for normal termination, which may not affect user experience in any obvious way).


Therefore, I recommend you actually go ahead and report the crashes Apport has told you about, before reporting what you suspect may be a bug in Apport itself. (Or after, if you've already filed the report for Apport.) The information submitted in your bug reports for the LibreOffice and Chromium crashes is very likely to shed light on whether or not said crashes were real, and thus also on whether or not it is a bug for Apport to think they were.


Specifically, after reading the bug reporting documentation (you may also wish to take a look at this question), I recommend that you:



  1. Configure Apport to report to Launchpad instead of via Whoopsie. (As described in my answer there, add 'Crash' to the probem_types list in /etc/apport/crashdb.conf.)


  2. When Apport detects a crash it creates a .crash file in /var/crash. You can run ubuntu-bug with the path to the crash file as an argument.


    For example, in one of my systems' /var/crash folders, I have grub2-themes-ubuntu-mate.0.crash. If I were to run


    ubuntu-bug /var/crash/grub2-themes-ubuntu-mate.0.crash

    or cd /var/crash followed by ubuntu-bug grub2-themes-ubuntu-mate.0.crash, Apport would start the bug reporting process for that crash by submitting data it had gathered and stored in that .crash file, then open a web browser window where I could fill out a bug report.


    So you should do this for your LibreOffice and Chromium crashes (one at a time).


  3. Sometimes a crash is sufficiently common and recognizable that Apport sends you to the existing bug report for it instead of giving you the opportunity to write your own. If that happens, and you have information to add to the bug report, you can post a comment on it.


    If you believe you may be suffering from the bug (you can judge this based on the information in the report, but in this situation you very probably are), then you should use the green "This bug affects..." link near the top of the bug report to indicate you are also affected. Optionally, you may also wish to subscribe to the bug to receive email about its progress.


  4. But for bugs that haven't already been reported with sufficient technical detail and then re-reported multiple times, you will be given the opportunity to report a bug yourself.


    In the web browser, describe fully what was happened leading up to Apport informing you that your applications that seemed to be properly functioning had crashed. Since you suspect there may not have been a real crash and that Apport may be mistaken, you should mention that too (and explain why--i.e., that the applications seemed to be working fine and they continued running). But make sure you provide sufficient factual detail for triagers and developers to allow them to (a) comprehend the report and (b) develop their own hypotheses relying solely or primarily on reported facts. Their initial thoughts may be the same as or different from yours (and may be right or wrong).


    You should also include links to other relevant bug reports, which in this case will be yours. Assuming you go ahead and report both the Chromium and LibreOffice crashes, you'll have two bug reports. The second report you fill out can include a link to the first bug. Then you can edit the first bug report to include a link to the second.


    If you've already filed a bug against Apport, you should include a link to it in your LibreOffice and Chromium reports (and explain its significance, of course).


  5. When you report a crash bug, it will usually be automatically set as private. This is because it's possible for sensitive personal information processed or otherwise accessed by a crashed program to be contained in the core dump that Apport usually includes when you file a crash bug--and to a secondary extent, sensitive information could be contained in registers (their state is usually included) or passed as argument to functions listed in the automatically included stack trace.


    It's okay for your bug reports to remain private. Likely, provided the core dump can be removed and the report can be inspected by a triager, they'll become publicly accessible. Whether or not that happens, work on them can progress.


    If you are confident no sensitive information was conveyed, you have the option to mark them public yourself. But you should not feel pressured to do this. It can be helpful under some circumstances but it is by no means necessary, for your bug reports to be effective.


    Links to a private bug report don't allow someone who doesn't have access to it to gain access. Therefore, you can feel secure in including links to a private bug report in other bug related bug reports (private or not).


  6. Even a cursory inspection of the Chromium and LibreOffice bug reports may be sufficient for people to determine to high degree of certainty if the crashes they document are real. Or it may take time. Usually, the stack traces included in Apport bug reports are initially less than ideal, due to the absence of some debug symbols packages on your system. A bot on Launchpad runs a retrace, filling in missing debug symbols and often illuminating the conditions and nature of the crash.


  7. If there are interested individuals who you wish to allow to see your bug even if it's private, you can subscribe them to the bug, on the bug page. Feel free to subscribe me to any bugs you file in connection with the topic of this question. (If you do, I recommend you also post a comment or something, to make sure I know you've done so and that you want me to look at something.) But before you do, take note:



    • I am not an expert in fixing bugs. It is possible I will not be able to help. And I cannot commit to providing continued assistance, though I'll probably try to help out. I suspect I'd have further insight into whether or not a crash bug represents a real crash by looking at the files Apport has attached to it, but I cannot promise even that.

    • It is not necessary for you to subscribe me or anyone else to a bug report. The necessary groups will already be subscribe and the necessary individuals will see the report.

    • You might prefer simply to show me (or whoever) the stack trace or retrace from the bug, to minimize access to potentially sensitive information, if the bug is still private.

    • You might feel comfortable looking through a stack trace yourself and satisfying yourself that none of the variables in it contain sensitive information like passwords or credit card numbers. Then, if you feel comfortable doing so, you could post it publicly on http://paste.ubuntu.com (or elsewhere), opening it up to the whole community's consideration, without having to give everyone access to potentially more sensitive data in the bug report such as the core dump file.


  8. After submitting your bug reports and expressing both the available facts (by description and through the file automatically attached by Apport) and your concerns that the crashes may have been identified and reported erroneously, it is likely sufficient simply to wait.


    Your bug may be automatically (by a bot) or manually (by a triager or developer or, occasionally, a member of the community who is neither) be made a duplicate of an existing bug report, commented on, closed, confirmed, triaged and assigned a severity, or some combination of those things. Any of these actions would likely shed light on the nature of what was reported, including whether or not it was a real crash.



software installation - What do I do after extracting *.tar.gz file?


I downloaded and extracted *.tar.gz file. Here's the link - Robomongo.
Then I located a folder named Bin and double clicked on a executable file. The program started to run. I didn't have to install it or anything.
I have two questions:


What's this type of package called - Source code | Compiled | something else?


What's the typical place to put these extracted files on your computer?



You have downloaded a compiled version of RoboMongo. Ordinarily such packages can be placed in either of 2 locations:



  1. $HOME/bin

  2. /usr/local/bin


I show the second option in this answer:


tar xvf robomongo-0.9.0-rc7-linux-x86_64-2b7a8ca.tar.gz
cd robomongo-0.9.0-rc7-linux-x86_64-2b7a8ca
sudo mv -v bin/* /usr/local/bin && sudo mv -v lib/* /usr/local/lib

If you then open the application with the command robomongo from the command line you will then have an option (for Xenial at least) on the sidebar to right click and 'Add to Dash' or 'Lock to Launcher':


enter image description here


It is not very tidy but this archive is not a fully developed package as such and lacks neat installation and removal options. However removal can be done manually with the following two commands:


sudo rm -v /usr/local/bin/{qt.conf,robomongo}
sudo rm -rfv /usr/local/lib/{imageformats,libQt5DBus.so,\
libQt5PrintSupport.so.5.5.1,\
libicudata.so.54,libQt5DBus.so.5,libQt5Widgets.la,\
libicudata.so.54.1,libQt5DBus.so.5.5,libQt5Widgets.prl,\
libicui18n.so.54,libQt5DBus.so.5.5.1,libQt5Widgets.so,\
libicui18n.so.54.1,libQt5Gui.la,libQt5Widgets.so.5,\
libicuuc.so.54,libQt5Gui.prl,libQt5Widgets.so.5.5,\
libicuuc.so.54.1,libQt5Gui.so,libQt5Widgets.so.5.5.1,\
libQt5Core.la,libQt5Gui.so.5,libQt5XcbQpa.la,\
libQt5Core.prl,libQt5Gui.so.5.5,libQt5XcbQpa.prl,\
libQt5Core.so,libQt5Gui.so.5.5.1,libQt5XcbQpa.so,\
libQt5Core.so.5,libQt5PrintSupport.la,libQt5XcbQpa.so.5,\
libQt5Core.so.5.5,libQt5PrintSupport.prl,libQt5XcbQpa.so.5.5,\
libQt5Core.so.5.5.1,libQt5PrintSupport.so,libQt5XcbQpa.so.5.5.1,\
libQt5DBus.la,libQt5PrintSupport.so.5,platforms,\
libQt5DBus.prl,libQt5PrintSupport.so.5.5,platformthemes}

It takes a little bit of manual fiddling but this works nicely on my system and should on yours as well...


14.04 - Can't access home directory during boot. Any solutions?

I recently switched to Ubuntu 14.04 from windows. I've setup Chrome Remote Desktop but it won't start during the boot process and the following error appears in boot.log



 * Starting Chrome Remote Desktop host for saurabh...       [170G 
[164G[ OK ]
* speech-dispatcher disabled; edit /etc/default/speech-dispatcher
saned disabled; edit /etc/default/saned
* Restoring resolver state... [170G
[164G[ OK ]
* Stopping save kernel messages[164G[ OK ]

Failed to load config: [Errno 2] No such file or directory: '/home/saurabh/.config/chrome-remote-desktop/host#ba729066861c0767fb62791c78a5aeac.json'
2015-02-05 15:31:36,819:INFO:Cleanup.


I was also trying to run another program, which was saved in my documents folder, from rc.local. It failed too because of the same reason.



I've encrypted my home folder. Could that be reason for these failures? If not, does anyone have any solution?

package management - How do I enable the "partner" repository?



I keep seeing places refer to the "partner" repository as a place I can get software, how can I enable this repository? Please specify how to do this graphically and via command line.



GUI Way:



Click on the ubuntu button, then search for "Software Sources" (or "Software & Updates" on Ubuntu 16.04+) and go to the "Other Software" tab.



enter image description here




Command Line Way:




  • Open the sources.list file: gksudo gedit /etc/apt/sources.list (or with the command line editor of your choice, sudo nano /etc/apt/sources.list would use nano on the command line without a GUI)

  • Add the partner repositories by removing the # in front of the following lines (maverick is the version of your Ubuntu installation, it may differ, so use the codename of the release you are using instead of 'maverick'. If you're not sure run lsb_release -c to find out.)



    # deb http://archive.canonical.com/ubuntu maverick partner
    # deb-src http://archive.canonical.com/ubuntu maverick partner




Using GEdit to edit the sources.list file




  • Save and Close.

  • Resynchronize the package index files from their sources: sudo apt-get update


  • Official documentation for reference



windows - How to use Wine?

I installed Wine from the Ubuntu Software Center, but I'm really not sure how to get my Windows applications to work.



I have Photoshop installed on a the Windows partition of my hard drive and I can see it in the Home Folder thing. However, when I click on the Photoshop.exe file, nothing happens. Am I doing something wrong? Please help.

Tuesday, December 25, 2018

server - Where to put preseed.cfg on flash drive install?

I am trying to boot a machine to the Ubuntu Server installer without a local monitor or keyboard. Therefore I want it to start the installation with a preseed that setups up SSH with a user and pass.



I know how to configure the preseed, but I don't know where to put it. I copied the Ubuntu Server ISO to my flash drive, and I see:



preseed/cli.seed
preseed/cloud.seed
preseed/ubuntu-server.seed
preseed/ubuntu-server-minimal.seed
preseed/ubuntu-server-minimalvm.seed



Are any of these run by default, or are these examples?



I also have:



boot/
boot/grub


Do I place something called preseed.cfg in one of those directories?




I don't want to have to type anything at a command prompt after the system boots to select the preseed, as I want to do it without local keyboard/monitor.

sudo - Unble to use administrator account created without password



I installed Ubuntu 11.10 two days back. Today I added a user named vivi and set it to administrator. And I just changed vivek, my username, to standard user. Now, since I created new user vivi, I have not supplied any password for it, yet I am unable to perform any administrator actions. Can anybody help me to restore administrative privileges?



Not sure if the above answer will work, since under live cd, you can't edit the system which installed too easily.



boot from the live CD, or mount the drive some other way, then edit /etc/group from your installed system. Make sure your have a line like admin:x:119:vivi - don't change the number if it's different, just add your user name at the end of the line.




You also have the option of editing the passwd file, editing the root entry so you can login, but that's probably less likely to work well


How can I add the softwares I have installed from USC of kubuntu 12.04 into kubuntu 12.10 iso installation file

I am currently using Kubuntu 12.04. I don't have strong high speed Internet connection and managed to get Kubuntu 12.10. I found that it's size is about 1GB. I have a lot of softwares installed in my current Kubuntu 12.04 via Ubuntu Software Center



I would like to Add these software to Kubuntu 12.10 installation iso file. I don't want to download packages from Ubuntu customization kit (UCK) or similar software.



I don't prefer using APTonCD or similar software. What I want is to add these software into this Kubuntu 12.10, so that they appear along with the default application which will be installed as default when the OS is installed. Is this possible?

boot - Windows option just reloads grub bootloader after updating to Ubuntu 19.10


I updated to Ubuntu 19.10 from 19.04. After updating, ubuntu booted alright. The grub bootloader shows option for ubuntu and windows as it was before updating. But now, when I select windows option, it just reloads the grub bootloader.
I tried boot-repair and many other things but nothing worked. Please help me.


Here is the paste from boot-repair :- https://paste.ubuntu.com/p/2R4mxMJvxg/



First you need to change your boot order to Windows instead of Grub. To find out the key to press during boot to bring up the BIOS menu see:


Ignore the part about selecting device boot order, you want to change the UEFI boot order and move Windows to the top.


Then the instructions on boot-repair report tell you to boot into Windows and then:



For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi


Do this from Windows and then if it doesn't work revise your question with current status / new issues.


Also note boot-repair created 5 entries to boot Windows but in my experience they won't all work. After you fix the booting issues see this answer:


Monday, December 24, 2018

custom distributions - Live CD from Scratch - No vmlinuz* / initrd.img*

Following this guide:


https://help.ubuntu.com/community/LiveCDCustomizationFromScratch


When it asks:



cp chroot/boot/vmlinuz-2.6.--generic image/casper/vmlinuz


cp chroot/boot/initrd.img-2.6.--generic image/casper/initrd.lz



I don't have such files:



ls chroot/boot


grub memtest86+.bin memtest86+.elf memtest86+_multiboot.bin



Is the guide out of date or did I miss a step?


Edit:


As per my comment below I am doing:


sudo debootstrap --arch=$ARCH $RELEASE chroot


Where amd64 and trusty are the values.

boot - Booting from flash, can't escape grub rescue

I recently wanted to reinstall Ubuntu on a partition on my PC. I used Gparted to delete the partition so that I could start fresh. I tried to boot to the usb, but it went into grub rescue mode. I looked at other solutions on here, and tried the whole ls->set root->reboot method, I tried it on each partition on the hard drive, to no avail. I then tried loading grub onto the flash drive and booting to that, no change. Then I reinstalled Gparted, and still nothing, I'm just stuck in grub rescue. I am at the end of my rope here, anyone have any solutions?

grub2 - How to boot into Ubuntu after installing into a pre-installed Windows 8 pc?

I recently just installed Ubuntu 13 from a USB drive.
I have/had Windows 8 64 bit on my desktop computer.


When I restart and boot my computer, there is not an option that allows me to choose Ubuntu, it goes straight to Windows 8. I understand this is a common issue.


However, my main question is, how do I get to even GO INTO Ubuntu after it's installed?
I don't mind booting into Windows 8 at first, but how can I even choose to see Ubuntu now that it's installed?

wireless - how to setup wifi

The only OS I have used has been windows but I wanted to try lubuntu on a netbook. I'm booting from a flash drive to try it out first. How do I connect the wifi. Remember I'm new to this so I not sure how the OS even works completely aka sudo command.

Sunday, December 23, 2018

apt - Half-installed package - kibana




I find troubles installing/removing/upgrading a half-installed package kibana. I probably edited kibana.yml file the wrong way and cant manage to get it working back.



[09:32] ***-VM:cache$ sudo apt-get --purge remove kibana
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
kibana*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.

After this operation, 124 MB disk space will be freed.
Do you want to continue? [Y/n] Y
dpkg: error processing package kibana (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
kibana
E: Sub-process /usr/bin/dpkg returned an error code (1)



Things you can use to resolve this situation:




  1. reinstalling and then removing



    sudo apt-get install --reinstall kibana
    sudo apt-get remove kibana

  2. single remove without purge




    sudo apt-get remove kibana

  3. force installing and removing



    sudo apt-get -f install
    sudo apt-get remove --purge kibana

  4. force removing by dpkg



    sudo dpkg -r --force kibana



What are Kernel Version number components (w.x.yy-zzz) called?

When looking at kernel version numbers installed in /boot using a work in progress command (find /boot/vm* -printf "%A@ %p\n") I see:


1469098968.0000000000 /boot/vmlinuz-3.13.0-92-generic
1477523408.0000000000 /boot/vmlinuz-3.2.0-113-generic
1476549941.0000000000 /boot/vmlinuz-4.4.0-43-generic
1477008540.0000000000 /boot/vmlinuz-4.4.0-45-generic
1470540722.0000000000 /boot/vmlinuz-4.6.3-040603-generic
1471805944.0000000000 /boot/vmlinuz-4.7.1-040701-generic
1472208664.0000000000 /boot/vmlinuz-4.7.2-040702-generic
1473382012.0000000000 /boot/vmlinuz-4.7.3-040703-generic
1474853146.0000000000 /boot/vmlinuz-4.7.5-040705-generic
1475960925.0000000000 /boot/vmlinuz-4.8.1-040801-generic
1477145804.0000000000 /boot/vmlinuz-4.8.4-040804-generic

What are the proper names for "w.xx.y-zzz" that follows the vmlinuz prefix?


The proposed duplicate link (What does the fourth number in the release version mean?)states the second segment is called the ABI Number. The answer below by muru states the fourth segment is the ABI Number however I believe both are wrong based on the links provided in my own answer below.


Keep in mind this question is about ALL four segments w.x.yy-zzz and not just the fourth segment zzz.

wireless - Ubuntu 14.04, problem installing package skype: i386

I have some problems with my Ubuntu 14.04. I can get both wireless and wired Internet with it. It is also very slow to start. When I performed any actions like update, upgrade or install, it will show me this message.


W: You may want to run apt-get update to correct these problems
E: The package skype:i386 needs to be reinstalled, but I can't find an archive for it.

How can I solve those issues?

Does Ubuntu touch has MP3/MP4 playback support by default?

I believe these are essential for apps like Youtube, but the codecs are closed source. How does Ubuntu touch resolves this issue? Does it use VLC as the backend?

package management - how to reinstall libsnpav0/libspnav0

E:The package libspnav0 needs to be reinstalled, but I can't find an archive for it.



and no one working: not Ubuntu Software Centre, nor Synaptic. I tried to use apt-get - the same:




sudo apt-get install libsnpav0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libspnav0 needs to be reinstalled, but I can't find an archive for it.


BUT!!!
see carefully, please! my typed request - about libsnpav0, but system answer - about libspnav0. and if I shange this letter in request - the answer not changing... just mistery...




AND there is no one trace of this lib in the
/var/lib/dpkg/status



so, how to install this lib?



thanks for advance )

networking - WiFi for HP 17-y020ca under Ubuntu 16.04 always either disabled or "not ready"


I recently purchased an HP Notebook 17-y020ca and installed XUbuntu 16.04. This notebook has a Broadcom Corporation BCM43142 wireless card.


This wireless card was not originally detected (but the ethernet card worked fine), and I followed the instructions at:


Is it possible to use Broadcom BCM43142 wifi in Ubuntu 16.04?


and now the card appears to be generally detected, and "Enable WiFi" is given as an active (non-greyed-out) option in my Networking menu in XFCE.


When I DO click "Enable WiFi" this menu will often change the status to indicate that it is enabled via a checkmark next to "Enable WiFi". However, when this happens, one of two things happen further up in the menu. Either it says:


"Wi-Fi is disabled"
or
"Wi-Fi not ready"


I ran the wireless-info.bash script and include below.


I would be truly grateful for any suggestions that anyone could give. I much appreciate your consideration!


Sincerely, Nathaniel Osgood


########## wireless info START ##########
Report from: 27 Jun 2016 11:59 CST -0600
Booted last: 27 Jun 2016 00:00 CST -0600
Script from: 26 May 2016 21:56 UTC +0000
##### release ###########################
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
##### kernel ############################
Linux 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Parameters: ro, quiet, splash, vt.handoff=7
##### desktop ###########################
Xubuntu (from ~/.dmrc)
##### lspci #############################
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)
DeviceName: RTL8166 Lan Connection
Subsystem: Hewlett-Packard Company RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [103c:8221]
02:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
DeviceName: WLAN Broadcom 43142 bgn 1x1
Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]
##### lsusb #############################
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 05c8:038f Cheng Uei Precision Industry Co., Ltd (Foxlink)
Bus 002 Device 002: ID 0a5c:216d Broadcom Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
##### PCMCIA card info ##################
##### rfkill ############################
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: acer-wireless: Wireless LAN
Soft blocked: yes
Hard blocked: no
##### lsmod #############################
acer_wmi 20480 0
hp_wmi 16384 0
sparse_keymap 16384 2 acer_wmi,hp_wmi
wl 6365184 0
cfg80211 565248 1 wl
wmi 20480 2 acer_wmi,hp_wmi
video 40960 1 acer_wmi
##### interfaces ########################
auto lo
iface lo inet loopback
##### ifconfig ##########################
eno1 Link encap:Ethernet HWaddr
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1554 errors:0 dropped:0 overruns:0 frame:0
TX packets:1545 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:634941 (634.9 KB) TX bytes:364653 (364.6 KB)
wlo1 Link encap:Ethernet HWaddr
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:228
##### iwconfig ##########################
eno1 no wireless extensions.
lo no wireless extensions.
wlo1 IEEE 802.11abg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=200 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
##### route #############################
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
##### resolv.conf #######################
nameserver 127.0.1.1
##### network managers ##################
Installed:
NetworkManager
Running:
root 793 1 0 11:49 ? 00:00:00 /usr/sbin/NetworkManager --no-daemon
##### NetworkManager info ###############
GENERAL.DEVICE: eno1
GENERAL.TYPE: ethernet
GENERAL.NM-TYPE: NMDeviceEthernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
GENERAL.DRIVER: r8169
GENERAL.DRIVER-VERSION: 2.3LK-NAPI
GENERAL.FIRMWARE-VERSION:
GENERAL.HWADDR:
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.REASON: 40 (Carrier/link changed)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:02.2/0000:01:00.0/net/eno1
GENERAL.IP-IFACE:
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --
GENERAL.CONNECTION: --
GENERAL.CON-UUID: --
GENERAL.CON-PATH: --
GENERAL.METERED: unknown
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: 100 Mb/s
CAPABILITIES.IS-SOFTWARE: no
WIRED-PROPERTIES.CARRIER: off
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:
GENERAL.DEVICE: wlo1
GENERAL.TYPE: wifi
GENERAL.NM-TYPE: NMDeviceWifi
GENERAL.VENDOR: Broadcom Corporation
GENERAL.PRODUCT: BCM43142 802.11b/g/n
GENERAL.DRIVER: wl
GENERAL.DRIVER-VERSION: 6.30.223.248 (r487574)
GENERAL.FIRMWARE-VERSION:
GENERAL.HWADDR:
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:02.3/0000:02:00.0/net/wlo1
GENERAL.IP-IFACE:
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --
GENERAL.CONNECTION: --
GENERAL.CON-UUID: --
GENERAL.CON-PATH: --
GENERAL.METERED: unknown
CAPABILITIES.CARRIER-DETECT: no
CAPABILITIES.SPEED: unknown
CAPABILITIES.IS-SOFTWARE: no
WIFI-PROPERTIES.WEP: yes
WIFI-PROPERTIES.WPA: yes
WIFI-PROPERTIES.WPA2: yes
WIFI-PROPERTIES.TKIP: yes
WIFI-PROPERTIES.CCMP: yes
WIFI-PROPERTIES.AP: no
WIFI-PROPERTIES.ADHOC: yes
WIFI-PROPERTIES.2GHZ: yes
WIFI-PROPERTIES.5GHZ: yes
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:
SSID BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY ACTIVE *
##### NetworkManager.state ##############
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
##### NetworkManager.conf ###############
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
##### NetworkManager profiles ###########
##### iw reg get ########################
Region: America/Regina (based on set time zone)
country 00: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(2457 - 2482 @ 40), (N/A, 20), (N/A), NO-IR
(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, NO-IR
(5170 - 5250 @ 80), (N/A, 20), (N/A), NO-IR
(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, NO-IR
(5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, NO-IR
(5735 - 5835 @ 80), (N/A, 20), (N/A), NO-IR
(57240 - 63720 @ 2160), (N/A, 0), (N/A)
##### iwlist channels ###################
eno1 no frequency information.
lo no frequency information.
wlo1 32 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Channel 14 : 2.484 GHz
Channel 36 : 5.18 GHz
Channel 38 : 5.19 GHz
Channel 40 : 5.2 GHz
Channel 42 : 5.21 GHz
Channel 44 : 5.22 GHz
Channel 46 : 5.23 GHz
Channel 48 : 5.24 GHz
Channel 52 : 5.26 GHz
Channel 56 : 5.28 GHz
Channel 60 : 5.3 GHz
Channel 64 : 5.32 GHz
Channel 100 : 5.5 GHz
Channel 104 : 5.52 GHz
Channel 108 : 5.54 GHz
Channel 112 : 5.56 GHz
Channel 116 : 5.58 GHz
Channel 120 : 5.6 GHz
Channel 124 : 5.62 GHz
##### iwlist scan #######################
wlo1 Interface doesn't support scanning : Network is down
eno1 Interface doesn't support scanning.
lo Interface doesn't support scanning.
##### module infos ######################
[wl]
filename: /lib/modules/4.4.0-21-generic/updates/dkms/wl.ko
license: MIXED/Proprietary
srcversion: 4DDC5FCDB1E30F7DFDCA530
depends: cfg80211
vermagic: 4.4.0-21-generic SMP mod_unload modversions
parm: passivemode:int
parm: wl_txq_thresh:int
parm: oneonly:int
parm: piomode:int
parm: instance_base:int
parm: nompc:int
parm: intf_name:string
[cfg80211]
filename: /lib/modules/4.4.0-21-generic/kernel/net/wireless/cfg80211.ko
description: wireless configuration support
license: GPL
author: Johannes Berg
srcversion: 00D8DA6D3B739DDD31FFF50
depends:
intree: Y
vermagic: 4.4.0-21-generic SMP mod_unload modversions
parm: ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm: cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)
##### module parameters #################
[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00
##### /etc/modules ######################
##### modprobe options ##################
[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci
[/etc/modprobe.d/blacklist-bcm43.conf]
blacklist b43
blacklist b43legacy
blacklist ssb
blacklist bcm43xx
blacklist brcm80211
blacklist brcmfmac
blacklist brcmsmac
blacklist bcma
[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac
[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off
[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en
##### rc.local ##########################
exit 0
##### pm-utils ##########################
##### udev rules ########################
##### dmesg #############################
[ 12.989617] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2
[ 12.989627] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found
[ 13.010399] wl: module license 'MIXED/Proprietary' taints kernel.
[ 13.015143] wl: module verification failed: signature and/or required key missing - tainting kernel
[ 13.372937] wlan0: Broadcom BCM4365 802.11 Hybrid Wireless Controller 6.30.223.248 (r487574)
[ 14.585653] wl 0000:02:00.0 wlo1: renamed from wlan0
[ 15.477355] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready
[ 15.483048] IPv6: ADDRCONF(NETDEV_UP): eno1: link is not ready
[ 15.665397] r8169 0000:01:00.0 eno1: link down (repeated 2 times)
[ 15.665478] IPv6: ADDRCONF(NETDEV_UP): eno1: link is not ready
[ 17.272949] r8169 0000:01:00.0 eno1: link up
[ 17.273002] IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready
[ 134.246145] r8169 0000:01:00.0 eno1: link down
[ 210.833497] r8169 0000:01:00.0 eno1: link up
[ 536.696508] r8169 0000:01:00.0 eno1: link down
########## wireless info END ############


This can be fixed by a terminal command


sudo tee /etc/modprobe.d/blacklist_acer.conf <<< "blacklist acer_wmi"

Wi-Fi should work after a reboot.


partitioning - Unable to boot after formatting extra hard drive



I have an extra hard drive that I wanted to repartition. My system is on a separate solid state drive. I booted off a USB drive and used disks to delete the existing partitions and repartition the drive.



When I try rebooting, Ubuntu is unable to start, and the computer enters emergency mode.



I would greatly appreciate any help trying to understand what happened and how to fix it.




After formatting the drive, /etc/fstab was no longer accurate. Once it was appropriately updated, everything started functioning normally again.


dual boot - Install Ubuntu alongside Windows 10 with legacy bios?

Ubuntu won't detect windows 10 when I try to install it, so I'm assuming it is because my BIOS is not in UEFI mode, but rather, in Legacy mode. Is there any way for me to still be able to install ubuntu alongside my windows installation?

proxy - Error in devstack installing on ubuntu



I'm getting following error while installing devstack on Ubuntu 14.04:



ERROR: openstack Error finding address for http://10.16.37.215:9292/v1/images: [Errno 32] Broken pipe


where 10.16.37.215 is my static IP address.



I was following the thread Open Stack Installation On Ubuntu 14.04? to install devstack...




I'm guessing this problem is because I'm behind a proxy. But how to solve this problem? http_proxy/s is set everywhere in my system.



Try to set:



no_proxy=10.16.37.215


this should help


Saturday, December 22, 2018

11.04 - I need the default set of software sources to recover my installation

I just had the default ones. They are ALL gone. I can't install any software at all. I am using Kubuntu 11.04 x86.



I have no idea why they disappeared. They just did. :/



How do I get the default software sources back?




(I know the sudo add-apt-repository command, but I need to names of the default repositories)

partitioning - How do I install Ubuntu 14.04 without losing data on a Windows 7 PC (physically)?

I have this windows PC, and I want to install this Ubuntu physically without VMware. Last time I installed this, I lost up-to 160GB, and it was all of my hard drive. I have 4 drives C:, D:, F: and E:. (on my new HDD with 320GB) where as I had like this on my 160GB too. But it was totally wasted because all the movies, videos, images and data was removed and the whole hard-drive was formatted and was partitioned into one drive. I want to install this Ubuntu OS by not losing any of these drives, and not losing any of the data that I have right now (NO partition, NO removal and No formatting). But I can't figure out how to. Last time I did physical install was on 160GB HDD, and I lost all my data. I don't want to lose data on this new one. The OS was 13, now it's Ubuntu 14.04.




Also, will I be able to hear sounds after installing Ubuntu physically without even installing sound card (Audio Decoder installed)?

live usb - Can I Install Ubuntu to a machine from a full USB flash drive installation?

I have a 16 gig flash drive with an installation of Ubuntu on it with a bunch of programs and built software. I know that normally a bootable version of Ubuntu will have a thing on the desktop to install to the hard drive. How do I replicate this full USB installation on a computer?

server - I have two System informations display



Hey! I have upgraded from 10.04 to 10.10 using the the
apt-get dist-upgrade command.



Everything went ok (at least for now everything seems to be working) but now when I login via ssh I get two system informations display, the first from 10.10 abd the second from 10.04.1 LTS



What did I do wrong?




Somebody @ http://wwww.ubuntuforums.org/showthread.php?p=10046052



recommended to check /etc/motd (Message of the day)



gksudo gedit /etc/motd should do the trick


ppa - How can I figure out the add-apt-repository command by looking at a launchpad project?


To install programs from launchpad, you can add a repository to the software sources list...


I know how to look at a launchpad page and add the repository & public key through the "Software Sources" GUI page, but I'd rather use the add-apt-repository command as this finds the key for me.. and I'm too lazy to grab it from the launchpad page, save it, then import it.


My problem is that I have no idea how to figure out the right command for a particular project??


For instance, Cardapio uses the command:


sudo add-apt-repository ppa:cardapio-team/unstable


But I can't see cardapio-team/unstable written on the launchpad page: https://launchpad.net/cardapio ??


is it possible, or is this address completely separate to launchpad?


Thanks!



PPAs in Launchpad are connected to People/Teams, rather than projects. Your best bet is to click on the "Maintainer" for the project ("Cardapio Team" in this case):



From there, follow the link on under "Personal Package Archives" on their profile page. There may be multiple options here, you'll just have to use your best guess based on their names.



The name of the PPA will be on this page:



However, this is not guaranteed to work, as the developers can use any PPA they want for their project. It could be ppa:someunrelatedteam/foobar for all you know. There is no way to know for sure from the Launchpad project.


Alternatively, googling "[project name] PPA" tends to give good results.


live usb - Installing Ubuntu 14.04 on a USB drive

I tried to install Ubuntu 14.04 on a USB drive using Startup Disk Creator, but I get this error message:



An uncaught exception was raised:
E:Syntax error /etc/apt/apt.conf:4: Extra junk at end of file


What does it mean? How can I install Ubuntu on my USB drive?

package management - Expanding APT-GET Repositories



Wow, I'm here posting about Linux. Never thought I'd see the day, but I've been shown the light by a smart guy and a few VMs and man pages later and her I am.



I think I've managed to get my Ubuntu VM to punch through the company proxy to get out to the net (I've used CURL to download Valgrind) and now I want to stretch my legs with APT-GET a bit. I thought something fun to do would be install Nethack, surely its in an APT repository. I've looked into the SOURCES file to see the repositories I can reference.. what is the universe/multiverse business? Who is Wily Werewolf and am I looking at his repositories? Where can I find more repositories to stick in there, specifically one hosting a Nethack (tiles version please, I can't do the ASCII) so then I can use APT-GET and pull it down?



If you are after the X11 version of nethack simply run:




sudo apt-get install nethack-x11


And then the glory of this old game will be revealed, as installed on my system:



enter image description here



No fiddling with repositories here, it is in the Universe Repositories which should be activated my default on your system...


Friday, December 21, 2018

How to install an up-to-date 18.04 server 32-bit?

Ubuntu 18.04 does not come with 32-bit standard ISO files. However, a minimal install ISO is available.



I have some older machines on which I would like to install a server, so 32-bit is a requirement. There are two problems:




  1. The minimal install ISO (as of today, 6 May 2018) appears to be a pre-release version. The file has a timestamp of 2018-04-25 21:23, which is a day or two before the release date. This is true of the 64-bit version as well.


  2. I want to ensure that I have the exact same installation as I would get if I installed from a full (and post-release) server ISO.





What should I do to obtain a complete and up-to-date 32-bit installation? If I simply install from the pre-release mini.iso and select the server packages during installation, will this achieve my aim?

apache2 - Pakcage "apache' has no installation candidate

I'm trying to install Apache into Ubuntu Desktop 18.04.1, but retrieving the error: package apache2 has no installation candidate
Any help, please? Thanks!

login - How to change Ubuntu One Password?

I'm using Ubuntu 11.10 and having problem as under:



I have My User Account password and when I open "System Settings >> User Accounts" the dialog get unlocked by providing current password. Also when I open Terminal1 it asks for password; I give the same password above and it works.



The problem comes where I open Ubuntu One It asks Me password and only works if I give My Old Password of My User Account which I changed earlier. Also aother noticable thing is; User Account Dilog and Terminal needs password to process further but when I Log Out and need to log in again it shows Me list of User Accounts (Me, Guest Etc.) it not demands for password although it shows Login button on that place!




Please Help Me to Change The Password for Ubuntu One and to create a ONE ONLY password for all this!

password - Run Bash Script as Root

Is there some way I can run a Bash script as root without being prompted for a password every time? I'm attempting to automate the process of starting my LAMPP install, which requires me running a couple of sudo commands to start and stop services. Optimally, I'd like to build this into an executable file, so all I'd have to do is click an icon. ;)



Obviously, I have the password, so that's not an issue. I just want to take my laziness one step farther and not have to enter it every time I start my localhost. After all, that's what programming is all about, right?

13.10 - Enable line numbers in gedit



I can't find how to enable the line numbers, current line highlight, and other goodness in 13.10.



enter image description here



If you've removed indicator-appmenu to remove global menus then either





  1. Reinstall indicator-appmenu or


  2. run this command (one long line):



    gsettings set org.gnome.settings-daemon.plugins.xsettings overrides '@a{sv} {"Gtk/ShellShowsAppMenu": }'


    (If the above doesn't copy as a single line, this code box here will work).




If you've edited gedit.desktop to add an env to keep menus in their window then remove the env, typically env UBUNTU_MENUPROXY=.




As an aside: if one wanted the app menu present in a root nautilus browser then removing indicator-appmenu and running the above from a root prompt will achieve that.



Example:



sudo -i
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides '@a{sv} {"Gtk/ShellShowsAppMenu": }'

server - Deleted Windows Partitions on drive now what do I do?


I'm new to Ubuntu and I figured it was time to learn. I am using Ubuntu server (headless?)


I have a drives as such:


    *-disk:1
description: ATA Disk
product: TOSHIBA MK1646GS
vendor: Toshiba
physical id: 1
bus info: scsi@1:0.0.0
logical name: /dev/sdb
version: LB11
serial: 18MIT4Y8T
size: 149GiB (160GB)
configuration: ansiversion=5 signature=780ee5c1

I have deleted the partitions with help from this thread. Do I need to format after deleting the partitions? Also, nice the drive is /dev/sbd I assume I need to mount it?


I'm a little lost at this point and could use a point in the right direction!!


Thanks all!


==== EDIT ====


fdisk -l



Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x0001eb47
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 625141759 312320001 5 Extended
/dev/sda5 501760 625141759 312320000 8e Linux LVM
Disk /dev/mapper/ubuntu-root: 316.6 GB, 316577677312 bytes
255 heads, 63 sectors/track, 38488 cylinders, total 618315776 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: 0x00000000
Disk /dev/mapper/ubuntu-root doesn't contain a valid partition table
Disk /dev/mapper/ubuntu-swap_1: 3217 MB, 3217031168 bytes
255 heads, 63 sectors/track, 391 cylinders, total 6283264 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: 0x00000000
Disk /dev/mapper/ubuntu-swap_1 doesn't contain a valid partition table
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x780ee5c1
Device Boot Start End Blocks Id System
Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x504bbe6a
Device Boot Start End Blocks Id System


Yes, You need to format the drive or partition before use. But before formatting, you need to create partitions on the disk.


Use GParted to do this easily in a graphical way. Go to /dev/sdb, format as ext4, and mount it to partition of your choosing, e.g. /media/allthisfreespace.


See the Ubuntu manual pages for fdisk, mkfs, and parted



I assume I need to mount it?



You can only mount the drive after creating a filesystem by formatting a partition.


server - Support for the tomcat8 package

On Ubuntu 16.04 I've been using the tomcat8 package. I enjoyed an automatic installation process and was guaranteed to receive packaged security updates for 5 years courtesy of Canonical. So, even though version 8.0 has been declared EOL, I can still use it on my Ubuntu server knowing that any vulnerabilities are going to be addressed.



$ ubuntu-support-status --show-supported
Supported until April 2021 (Canonical - 5y):
tomcat8 tomcat8-admin tomcat8-common



Much to my dismay, on Ubuntu 18.04 the tomcat8 package has been moved to Universe. In my understanding, there is no support guarantee and security patches may or may not be distributed as long as the mainstream product is supported by the Apache Foundation.



Is my understanding of things correct? Is there a convenient way to keep tomcat patched with security updates on Ubuntu 18.04 as easily as with 16.04?



Update: To be clearer, with 16.04 I could simply run apt update tomcat8 and be sure that there would be no vulnerabilities left unpatched. Running the same command today on 18.04, I get version 8.5.30-1ubuntu1 which is behind the latest available (8.5.37) and apparently affected by more than one known vulnerabilities.

unity - Will my current Gnome desktop be preserved when upgrading to 11.04




I was wondering since Ubuntu 11.04 will include Unity as the default interface, if (when the time comes) I upgrade to 11.04 from 10.10 will my current desktop setup be preserved somewhere, so in case I do not like Unity I can simply switch back to my Gnome desktop



Switching between Unity and your (preserved) GNOME session will be as simple as logging out, choosing "Ubuntu Classic Desktop" at the login screen, and logging in again.



Screenshot 1



Screenshot 2


Thursday, December 20, 2018

apt - Cannot upgrade ubuntu 19.04 for a time




After I login ubuntu, as usual, I check upgradable packages by running: sudo apt update. Then the result is:





36 packages can be upgraded. Run 'apt list --upgradable' to see them.




I continue with the command:sudo apt upgrade but I got error:




E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?





I waited for a few moments and then I rerun the previous command and it told me:




2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Is it an apt error or there's an update process running on the background?




You are duplicating the work being done by Unattended Upgrades, so encountering interference is expected behavior.




Take a look at the Software & Updates control panel, the 'Updates' tab:



enter image description here



Look at the line: When there are security updates



Those security updates are downloaded-and-installed-automatically using apt...just like updates that you initiate. Security updates can occur at any time, but often occur just after startup.



Since only one apt session can run at a time, one of you gets locked out with an error message until the current apt session completes. That lockout is the classic error message you encountered. Another process was indeed using apt at the time.




If you want to verify, look at /var/log/apt/history.log. You will likely see two sessions, one that installed the security updates, and another (yours) that installed the rest.



Interfering with Unattended Upgrades causes no damage. The same packages get installed regardless of who initiates the upgrade or when.


I can't create both Swap and Ext4 partition



I installed Ubuntu using the dual boot method. My laptop is HP pavilion DV6. It has MBR on my HDD, so I'm limited to create 4 primary partitions. In Windows 8 I have used 4 primary partitions. In the driver management I see only 3 primary partitions which are the C, D, E drive. The F drive is logical drive. I didn't find the missing primary partition so I deleted my D drive and thus made space for a new primary partition.



When I began to install Ubuntu I created only 1 partition. I could either create a swap partition or a Ext4. So I decided to create an Ext4 partion which will replace the D drive partition. But i think i should create a swap Partition for my Ubuntu.



What should I do now, my laptop has 4GB RAM.




Here is my gparted snapshot.



gparted snapshot



When you make logical partitions, they require one of your primary partition slots to be used as the base for the extended volume.



In this case, /dev/sda3 is the base for extended volumes, but /dev/sda5 is the only logical partition in there, and is using up the whole of /dev/sda3's storage.



Hope that helps!




EDIT:



The first answer on this question should show you how to enable the partition for use as swap.


11.10 - Can&#39;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 (...