Ubuntu error found when loading on line 73 when logging in to screen
am facing a problem with lunching into ubuntu , before the problem accurs i tried download bspwm windows manager from the terminal, it was all good until i decided to reboot. the bspwm option wasnt (there in the setting kinda logo) and when i lunched into ubuntu i was given this error . Am kinda beginner so am really worried about lossing any data.
do you know?
how many words do you know
See also questions close to this topic
-
Linux on Lightsail instance is asking for a password and it's not working
I'm trying to restart
mariaDB
on Ubuntu but it's not letting me.I enter:
systemctl restart mariadb
and get:
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to restart 'mariadb.service'. Authenticating as: Ubuntu (ubuntu) Password: polkit-agent-helper-1: pam_authenticate failed: Authentication failure ==== AUTHENTICATION FAILED ===
I have the same password for all functions so I do not understand why it is not working. What can I do?
-
How to tag and store files, by metadata, in Python?
I want to build a manual file tagging system like this. Given that a folder contains these files:
data/ budget.xls world_building_budget.txt a.txt b.exe hello_world.dat world_builder.spec
I want to write a tagging system where executing
py -3 tag_tool.py -filter=world -tag="World-Building Tool"
will output
These files were tagged with "World-Building Tool": data/world_building_budget.txt hello_world.dat world_builder.spec
Another example. If I execute:
py -3 tag_tool.py -filter="\.txt" -add_tag="Human Readable"
It will output
These files were tagged with "Human Readable": data/world_building_budget.txt a.txt
I am not asking "Do my homework for me". I want to know what approach I can take to build something this? What data structure should I use? How should I tag contents in a directory?
-
Installing pillow fails on Linux environment or Chrome OS. How do I fix this?
When I try to install pillow with pip3, it gives me the following error message.
failed building wheel for pillow
[omitted text]
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-092vzzoo/pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-v4rw5g1c/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-092vzzoo/pillow/
-
Getting mongo authorization errors with userAdminAnyDatabase role
I am trying to get authorization working on a mongo database on a new Ubuntu machine. I have created an admin user with the role userAdminAnyDatabase:
admin> show users [ { _id: 'admin.mongoAdmin', userId: UUID("590a4465-625a-4fa0-af2e-0f2c75777ac5"), user: 'mongoAdmin', db: 'admin', roles: [ { role: 'userAdminAnyDatabase', db: 'admin' } ], mechanisms: [ 'SCRAM-SHA-1', 'SCRAM-SHA-256' ] } ]
but I get authorization errors when I try to do anything:
admin> use test switched to db test test> db.users.find({}) MongoServerError: not authorized on test to execute command { find: "users", filter: {}, lsid: { id: UUID("f3cf2fbc-bbea-4ceb-83a1-b842b5047e74") }, $db: "test" }
I know I am using the correct id/password, as when I try to run the mongo shell with a different password it fails to start with a password error.
Ubuntu version is 20.04.4 (Focal); Mongo version is 5.0.8:
% mongod --version db version v5.0.8 Build Info: { "version": "5.0.8", "gitVersion": "c87e1c23421bf79614baf500fda6622bd90f674e", "openSSLVersion": "OpenSSL 1.1.1f 31 Mar 2020", "modules": [], "allocator": "tcmalloc", "environment": { "distmod": "ubuntu2004", "distarch": "x86_64", "target_arch": "x86_64" } }
-
docker discord.py ffmpeg.exe was not found
My code works on windows fine I'm just stumped on how to migrate it to my docker server for stability reasons and my old vm shit the bed. bellow is my main playing loop
async def main_playing_loop(vc, ctx): global skip while len(queued[str(ctx.guild.id)]) > 0: try: print(vc.is_playing()) while vc.is_playing() or vc.is_paused(): await asyncio.sleep(2) skip_func(vc) pass except AttributeError: pass try: url = str(queued[str(ctx.guild.id)][0]) download_video(ctx, url) vc.play(discord.FFmpegPCMAudio(executable="ffmpeg.exe", source=str(ctx.guild.id) + ".mp3")) del queued[str(ctx.guild.id)][0] except: break
log of what its doing
discord_main_1 | [youtube] dQw4w9WgXcQ: Downloading android player API JSON discord_main_1 | [youtube] dQw4w9WgXcQ: Downloading webpage discord_main_1 | stoping discord_main_1 | [youtube] dQw4w9WgXcQ: Downloading android player API JSON discord_main_1 | [info] dQw4w9WgXcQ: Downloading 1 format(s): 251 discord_main_1 | [download] Destination: 866270239342460930.mp3 [download] 100% of 3.28MiB in 00:00 discord_main_1 | Ignoring exception in command play: discord_main_1 | Traceback (most recent call last): discord_main_1 | File "/usr/local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 85, in wrapped discord_main_1 | ret = await coro(*args, **kwargs) discord_main_1 | File "/usr/src/bot/main.py", line 125, in play discord_main_1 | vc.play(discord.FFmpegPCMAudio(executable="ffmpeg.exe", source=str(ctx.guild.id) + ".mp3")) discord_main_1 | File "/usr/local/lib/python3.10/site-packages/discord/player.py", line 225, in __init__ discord_main_1 | super().__init__(source, executable=executable, args=args, **subprocess_kwargs) discord_main_1 | File "/usr/local/lib/python3.10/site-packages/discord/player.py", line 138, in __init__ discord_main_1 | self._process = self._spawn_process(args, **kwargs) discord_main_1 | File "/usr/local/lib/python3.10/site-packages/discord/player.py", line 147, in _spawn_process discord_main_1 | raise ClientException(executable + ' was not found.') from None discord_main_1 | discord.errors.ClientException: ffmpeg.exe was not found. discord_main_1 | discord_main_1 | The above exception was the direct cause of the following exception: discord_main_1 | discord_main_1 | Traceback (most recent call last): discord_main_1 | File "/usr/local/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 939, in invoke discord_main_1 | await ctx.command.invoke(ctx) discord_main_1 | File "/usr/local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 863, in invoke discord_main_1 | await injected(*ctx.args, **ctx.kwargs) discord_main_1 | File "/usr/local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 94, in wrapped discord_main_1 | raise CommandInvokeError(exc) from exc discord_main_1 | discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: ffmpeg.exe was not found.
i have still got the old exe for ffmpeg i was using on win but that doesn't work on Ubuntu. any help is appreciated thanks.