I am creating an IRC client for the Ubuntu App Showdown. I need a way to be able to access an IRC server in QML (or JavaScript). What is the best way to accomplish this?
Aaron Hill's questions
When I am using the Ubuntu Software Updater to install or upgrade packages, I can see a progress bar that shows how much of the installation is complete. When I am using the command line apt-get
tool, there is no such progress indicator. Is there a way to easily see the progress of a package installation when using a command line application such as apt-get
?
I have both apt-get and aptitude installed on my system. When I am performing any operation using aptitude, I see Reading extended state information
and Writing extended state information
. These messages are not present with apt-get. What state information is aptitude reading that apt-get is not?
When you press Control Alt Delete in a Terminal, your system reboots. This does not prompt for authentication to reboot. However, running sudo reboot
does require authentication as a sudoer to execute. These commands appear to be doing the same thing. Why does one of them require superuser privileges, and the other does not?
I have created an Ubuntu applications using Quickly, but I am wondering if the .deb package that Quickly has created will work on Debian. Do Quickly applications work only on Ubuntu?
I am using Unity on Ubuntu 12.04. For some time now, the Applications lens is completely empty when I open it. If I search for any applications from the Home or Applications lens, no results show up. I have tried killing and launching the Applications lens as suggested at Launchpad, but it did not work. How can I get the applications lens to work again?
I am using Ubuntu 12.04. Recently, the font size for all of my TTYs became much larger. How can I change the font size back to the default?
I have two computers: one running Windows XP and one running Ubuntu 12.04. They are connected to my monitor via a VGA switchbox. What I would like to do is be able to boot Ubuntu without a monitor, but then be able to switch back to it, and still have a graphical desktop running. I have read about creating a headless Ubuntu server, but the guides I have found all seem to involve disabling the graphical session altogether. How can I set this up?
EDIT:
My Ubuntu computer is a HP Pavilion a1120n.
I am using Ubuntu 12.04 64-bit.
I am looking for a facial recognition program that I could use to log in to my account. I have heard of Pam Face Recognition, but there does not appear to be a package for Ubuntu 12.04, and the PPA has been inactive for a while now.
Are there any alternatives that I could use?
I am creating a Quickly app in Ubuntu that depends on Python Twisted, which is available in the package python-twisted. How should I add python twisted as a dependency so that it will be installed when a user installs my application?
I am using Ubuntu 12.04. I recently performed an upgrade for my system. Now, when I try to install a package (aptitude for example), I see this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
aptitude is already the newest version.
aptitude set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libqt4-dbus : Depends: libqt4-xml (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
Depends: libqtcore4 (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
Recommends: qdbus (= 4:4.8.1-0ubuntu4)
Breaks: libqt4-dbus:i386 (!= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
libqt4-dbus:i386 : Breaks: libqt4-dbus (!= 4:4.8.1-0ubuntu4.1) but 4:4.8.1-0ubuntu4 is to be installed
libqt4-network : Depends: libqt4-dbus (= 4:4.8.1-0ubuntu4.1) but 4:4.8.1-0ubuntu4 is to be installed
libqt4-script : Depends: libqt4-dbus (= 4:4.8.1-0ubuntu4.1) but 4:4.8.1-0ubuntu4 is to be installed
qdbus : Depends: libqt4-dbus (= 4:4.8.1-0ubuntu4.1) but 4:4.8.1-0ubuntu4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I then proceeded to run sudo apt-get install -f
to fix the dependency problem. When I ran that, I received this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libqt4-dbus
The following packages will be upgraded:
libqt4-dbus
1 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
23 not fully installed or removed.
Need to get 0 B/179 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: error processing libqt4-dbus (--configure):
libqt4-dbus:amd64 4:4.8.1-0ubuntu4 cannot be configured because libqt4-dbus:i386 is in a different version (4:4.8.1-0ubuntu4.1)
dpkg: dependency problems prevent configuration of qdbus:
qdbus depends on libqt4-dbus (= 4:4.8.1-0ubuntu4.1); however:
Version of libqt4-dbus on system is 4:4.8.1-0ubuntu4.
dpkg: error processing qdbus (--configure):
dependency problems - leaving unconfigured
dpkg: error processing libqt4-dbus:i386 (--configure):
libqt4-dbus:i386 4:4.8.1-0ubuntu4.1 cannot be configured because libqt4-dbus:amd64 is in a different version (4:4.8.1-0ubuntu4)
dpkg: dependency problems prevent configuration of libqt4-network:i386:
libqt4-network:i386 depends on libqt4-dbus (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-dbus:i386 is not configured yet.
dpkg: error processing libqt4-network:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-network:
libqt4-network depends on libqt4-dbus (= 4:4.8.1-0ubuntu4.1); however:
Version of libqt4-dbus on system is 4:4.8.1-0ubuntu4.
dpkg: error processing libqt4-network (--configure):
dependencNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
y problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-script:i386:
libqt4-script:i386 depends on libqt4-dbus (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-dbus:i386 is not configured yet.
dpkg: error processing libqt4-script:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-script:
libqt4-script depends on libqt4-dbus (= 4:4.8.1-0ubuntu4.1); however:
Version of libqt4-dbus on system is 4:4.8.1-0ubuntu4.
dpkg: error processing libqt4-script (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-xmlpatterns:i386:
libqt4-xmlpatterns:i386 depends on libqt4-network (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-network:i386 is not configured yet.
dpkg: error processing libqt4-xmlpatterns:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-xmlpatternNo apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
s:
libqt4-xmlpatterns depends on libqt4-network (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-network is not configured yet.
dpkg: error processing libqt4-xmlpatterns (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-declarative:i386:
libqt4-declarative:i386 depends on libqt4-network (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-network:i386 is not configured yet.
libqt4-declarative:i386 depends on libqt4-script (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-script:i386 is not configured yet.
libqt4-declarative:i386 depends on libqt4-xmlpatterns (= 4:4.8.1-0ubun
tu4.1); however:
Package libqt4-xmlpatterns:i386 is not configured yet.
dpkg: error processing libqt4-declarative:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-declarative:
libqt4-declarative depends on libqt4-network (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-network is No apport report written because MaxReports is reached already
not configured yet.
libqt4-declarative depends on libqt4-script (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-script is not configured yet.
libqt4-declarative depends on libqt4-xmlpatterns (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-xmlpatterns is not configured yet.
dpkg: error processing libqt4-declarative (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-designer:
libqt4-designer depends on libqt4-script (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-script is not configured yet.
dpkg: error processing libqt4-designer (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-designer:i386:
libqt4-designer:i386 depends on libqt4-script (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-script:i386 is not configured yet.
dpkg: error processing libqt4-designer:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-help:
libqt4-help depends on libqt4-network (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-network is not configured yet.
dpkg: error processing libqt4-help (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-qt3support:i386:
libqt4-qt3support:i386 depends on libqt4-designer (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-designer:i386 is not configured yet.
libqt4-qt3support:i386 depends on libqt4-network (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-network:i386 is not configured yet.
dpkg: error processing libqt4-qt3support:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-scripttools:
libqt4-scripttools depends on libqt4-script (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-script is not configured yet.
dpkg: error processing libqt4-scripttools (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-scripttools:i386:
libqt4-scripttools:i386 depends on libqt4-script (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-script:i386 is not configured yet.
dpkg: error processing libqt4-scripttools:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqtgui4:i386:
libqtgui4:i386 depends on libqt4-declarative (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-declarative:i386 is not configured yet.
dpkg: error processing libqtgui4:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqtgui4:
libqtgui4 depends on libqt4-declarative (= 4:4.8.1-0ubuntu4.1); however:
Package libqt4-declarative is not configured yet.
dpkg: error processing libqtgui4 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-opengl:
No apport report written because MaxReports is reached already
libqt4-opengl depends on libqtgui4 (= 4:4.8.1-0ubuntu4.1); however:
Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-opengl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-opengl:i386:No apport report written because MaxReports is reached already
libqt4-opengl:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.1); however:
Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-opengl:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-svg:
libqt4-svg depends on libqtgui4 (= 4:4.8.1-0ubuntu4.1); however:
Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-svg (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-svg:i386:No apport report written because MaxReports is reached already
libqt4-svg:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.1); however:
Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-svg:i386 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libqt4-dbus
qdbus
libqt4-dbus:i386
libqt4-network:i386
libqt4-network
libqt4-script:i386
libqt4-script
libqt4-xmlpatterns:i386
libqt4-xmlpatterns
libqt4-declarative:i386
libqt4-declarative
libqt4-designer
libqt4-designer:i386
libqt4-help
libqt4-qt3support:i386
libqt4-scripttools
libqt4-scripttools:i386
libqtgui4:i386
libqtgui4
libqt4-opengl
libqt4-opengl:i386
libqt4-svg
libqt4-svg:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)
Running sudo dpkg --configure -a
produces very similar results.
Does anyone know how I can resolve these errors? I am currently unable to install any packages.
I am trying to set up roaming profiles on Ubuntu Server. My goal is to be able to log on to the server from any computer in my house running Ubuntu, and have the profile for the user I logged in as loaded onto that computer. What is the easiest way to accomplish this?
I am trying to set up a Hurricane IPv6 tunnel on my Ubuntu 11.10 computer. I have set up my /etc/network/interfaces file as stated on https://wiki.ubuntu.com/IPv6#Get_connected_with_Hurricane_Electric.
My /etc/network/interfaces file is the following:
auto lo
iface lo inet loopback
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
endpoint 209.51.161.14
address 2001:470:1f06:6::2/64
netmask 64
up ip -6 route add default dev he-ipv6
down ip -6 route del default dev he-ipv6
When I try to start IPv6 by running sudo ifup he-ipv6, I receive the following:
add tunnel sit0 failed: No buffer space available
Failed to bring up he-ipv6.
I have double checked that the data I entered from Hurricane is correct. What is causing this problem, and how can I fix it?
I am currently using Ubuntu 11.10. My HDD has been frequently used for more than 5 years now. When I try to use the sudo command, or execute a command as root, I receive a message stating that the filesystem is read-only. For example, when I try to run sudo apt-get install gnome-tweak-tool, I receive the following output:
sudo: Can't ipen /var/lib/sudo/aaron/0: Read-only file system
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened
I have heard that Ubuntu will make the filesystem read only because of disk errors. After checking my hard drive with Disk Utility, I discovered that it has 7 bad sectors. Disk Utility also warned about imminent disk failure. Is this kind of thing normal, and can/should I make the filesystem writeable again? Or should I simply replace my hard drive?
I am using Ubuntu Linux 11.10. Currently, I have Windows XP on one computer, and Ubuntu on another. I switch between the with a VGA box that allows me to switch which computer is connected to my monitor. For some reason, if I am viewing Windows XP while Ubuntu is booting, the screen will be black when I switch back over to it. I have waited 15 minutes on this screen, and nothing happened. I have also tried to "wake it up" by moving the mouse and using the keyboard. Ubuntu boots fine if it is connected to the monitor when it boots. Does anyone know what could be causing this?
The output of lspci -nn | grep VGA
is:
00:02.0 VGA compatible controller [0300]: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller [8086:2582] (rev 04)
I am going to install Ubuntu Server. On numerous websites, I have observed screenshots of the install process. If I would like to take a screenshot of the install process, how can I do it?
I am using Ubuntu Linux 64 bit. Recently, I was using Ubuntu 32 bit, and discovered through the command grep --color=always -iw lm /proc/cpuinfo
that my processor is capable of 64-bit. The output of the command is:
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc up pebs bts nopl pni dtes64 monitor ds_cpl tm2 cid cx16 xtpr
However, after wiping the disk and install Ubuntu 11.10 64 bit, the system still detects only 3.1 GB of RAM. I have verified in the BIOS that I have 4 gigabytes of RAM installed, not 3.1. Why is Ubuntu 64 bit only detecting 3.1 GB of RAM?
Output of uname -a
aaron@Aarons-Ubuntu-Computer:~$ uname -a
Linux Aarons-Ubuntu-Computer 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Output of free -m
aaron@Aarons-Ubuntu-Computer:~$ free -m
total used free shared buffers cached
Mem: 3136 2960 175 0 233 1996
-/+ buffers/cache: 730 2405
Swap: 3189 0 3189
I am running Ubuntu 11.10 32-bit. Recently, I installed the Plymouth boot screen to change the boot animation. Now I would like to remove it. I want to revert to the default animation it was before I installed Plymouth. However, I cannot remove Plymouth without removing several other critical packages. Does anyone know how I can remove Plymouth and revert to my original boot animation?
I am using Ubuntu 11.10 Gnome Shell. I have changed the keybinding theme from Default to emacs using Gnome Tweak Tool. For some reason I can't change it back to default. Has anyone encountered this issue before, and does anyone know how to fix it?
I am using the GNOME Shell interface on Ubuntu 11.10. The black titlebar with Activities, Calender, and the notification icons has disappeared. The Nautilus menu (File, Edit, View, ect.) is at the top instead. If I open any applications, they are missing their titlebar and the buttons, and appear in the top left of the screen. Does anyone know how to fix this? I am using a VGA graphics card, with no driver.
The output of lspci | grep VEGA
is:
00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller (rev 04)
The output of /usr/lib/nux/unity_support_test -p
is:
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 915G x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.11
Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: yes