Latest Ubuntu related questions

Score: 1
ItzFoil  avatar
Can't install Java on Ubuntu Server 20.04.3 LTS
ug flag

So when I go to paste in:

sudo add-apt-repository ppa:linuxuprising/java

It says:

N: Ignorerar filen ”linuxuprising-” i katalogen ”/etc/apt/sources.list.d/” eftersom den inte har en filändelse

It's in Swedish but it basically ignores a file because it hasn't got a file ending. After this, I get a bunch of warnings telling me some packages are configured multiple times. No matter what I type ...

Score: 0
Mike G avatar
PHP connection to Maria DB
lk flag

Hopefully someone can explain an issue I found doing a simple connection between PHP 7 and MariaDB Server 10.3.32 on Ubuntu 20.04.

Here is the connection data:

$dsn = "mysql:localhost; dbname=databasename; charset=utf8mb4";  
$options = [ PDO::ATTR_EMULATE_PREPARES => false,  
             PDO::ATTR_ERRMODE => PDO::ERRORMODE_EXCEPTION,   
             PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETC ...
Score: 1
Franklin Foko avatar
Problem to restart network
kr flag

When I type:

systemctl restart networking.service

this error message show:

failed to restart networking.service: Unit networking.service not found

I use ubuntu server 20.04 LTS

Score: 0
Marquez avatar
If i Erase disk and Install Ubuntu where ubuntu will be installed, in SSD or HDD?
in flag

I want to install Ubuntu and remove windows, but im just confuse where Ubuntu will be installed in ssd or hdd ?

Score: 0
Unable to change screen resolution in Ubutu 21.10 with Lebula 7-Inch touchscreen monitor Raspberry pi
br flag

In order for the touchscreen to work, I need to change the resolution to 1024x600. If I go to Settings, display, I have a 'Unknown Monitor' with a resolution of 720x480 (3:2). There are no other options.

I used cvt to get the modeline for that resolution and xrandr to add the resolution.

Now in displays, I have the additional 1024x600 resolution, and I can select it and click [Apply] and confirm, b ...

Score: 16
cocomac avatar
How do I rerun the second-to-last command?
cn flag

I'm using Ubuntu 21.10. If I mess up, I can re-run the last command with !!. Here's an example:

$ apt update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/ ...
Score: 0
user3175632 avatar
Can't Access Windows after Dual Boot Install - Wiped Windows Partition?
pl flag

I have read other posts and haven't found a solution after 10+ hours of torturous attempts! :( I would be so grateful for any help or advice.

Here's what's happened:

  • I installed Ubuntu 21.10 as a dual boot along with windows. Both worked okay
  • I decided I want the LTS version, so overwrote 21.10 with 20.04. I got the warning messages that: - The partition devices of the following devices are going  ...
Score: 2
kristy1024 avatar
FTP restricted user umask - where is it?
cn flag

I've studied this for days and I cannot find the solution. I have 2 ftp users. Settings in /etc/vsftpd.conf:

write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES

The shell that this user logs into is /bin/ftponly. The code is:

#!/bin/sh
echo "This account is limited to FTP access only."
#!/bin/sh
echo "This account is limited to FTP access only."

The user is restricted to an ftp shell a ...

Score: 0
Dmitry Dmitriev avatar
Error attaching device to DPDK
kr flag

Error attaching device to DPDK while adding interfaces to OVS bond on Ubuntu.

  • Ubuntu 20.04.3
  • DPDK 19.11.10
  • OVS 2.13.3
  • NICs Intel x710 (fw 7.10)

Command:

ovs-vsctl add-bond ovsbr0 bond0  ens2f0 ens2f1 ens3f0 ens3f1 \
   -- set Interface ens2f0 type=dpdk  "options:dpdk-devargs=0000:5e:00.0" \
   -- set Interface ens2f1 type=dpdk  "options:dpdk-devargs=0000:5e:00.1" \
   -- set Interface ens3f0 ty ...
Score: 0
lunar75 avatar
replacing host keys in /etc/ssh
us flag

I have a backup of /etc/ssh from previous ubuntu installation. In new installation of Ubuntu I would need to place host keys from previous installation to the new installation Can I just copy those from previous installation to new one? And will I have to run chown?

Score: 0
CPU frequency capped permanently until reboot
ve flag

I have an old spare Dell V131 that I use sometimes and after a while of being on, it caps CPU frequency to its lowest (800 Mhz) and stays there.

The variable

# cat /proc/cpuinfo | grep -i "cpu Mhz"
cpu MHz     : 1281.633
cpu MHz     : 1324.313
cpu MHz     : 1103.786
cpu MHz     : 1444.849

goes to solid

cpu MHz     : 798.181
cpu MHz     : 798.179
cpu MHz     : 798.182
cpu MHz     : 798.178

and then neve ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.