LINUX.ORG.RU

Сообщения Danger271

 

E: Sub-process /usr/bin/dpkg returned an error code (1)

Форум — General

sudo apt install mariadb-client я пробовал удалять mariadb и ставить заново, но это не помогло

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mariadb-client is already the newest version (1:10.6.8-1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 mariadb-server : Depends: mariadb-server-10.6 (>= 1:10.6.8-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sudo apt –fix-broken install

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  mariadb-server-10.6
Suggested packages:
  mailx mariadb-test netcat-openbsd
The following NEW packages will be installed:
  mariadb-server-10.6
0 upgraded, 1 newly installed, 0 to remove and 620 not upgraded.
1 not fully installed or removed.
Need to get 0 B/3,348 kB of archives.
After this operation, 44.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 706887 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.6_1%3a10.6.8-1_amd64.deb ...
Failed to stop mariadb.service: Unit mariadb.service not loaded.
invoke-rc.d: initscript mariadb, action "stop" failed.
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
Attempt to stop MariaDB/MySQL server returned exitcode 5
There is a MariaDB/MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.6_1%3a10.6.8-1_amd64.deb (--unpack):
 new mariadb-server-10.6 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mariadb-server-10.6_1%3a10.6.8-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 ,

Danger271
()

ConnectionError: Cannot send requests while disconnected

Форум — General

https://github.com/Seavegen/tg_leave_chats_and_delete_dialog/ Мне нужно с телеги почистить чаты, нашел данный скрипт, но тут ошибка

python unsuber.py
/home/kali/Desktop/unsuber.py:73: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
/home/kali/Desktop/unsuber.py:23: RuntimeWarning: coroutine 'DialogMethods.get_dialogs' was never awaited
  async for dialog in client.get_dialogs():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
  File "/home/kali/Desktop/unsuber.py", line 74, in <module>
    loop.run_until_complete(main())
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/kali/Desktop/unsuber.py", line 67, in main
    leave_groups = await leave_all_groups()
  File "/home/kali/Desktop/unsuber.py", line 33, in leave_all_groups
    me = await client.get_me()
  File "/home/kali/.local/lib/python3.10/site-packages/telethon/client/users.py", line 161, in get_me
    me = (await self(
  File "/home/kali/.local/lib/python3.10/site-packages/telethon/client/users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "/home/kali/.local/lib/python3.10/site-packages/telethon/client/users.py", line 63, in _call
    future = sender.send(request, ordered=ordered)
  File "/home/kali/.local/lib/python3.10/site-packages/telethon/network/mtprotosender.py", line 172, in send
    raise ConnectionError('Cannot send requests while disconnected')
ConnectionError: Cannot send requests while disconnected

Что не так?

 , ,

Danger271
()

Error: Cannot find module '/app/server.js'

Форум — General

https://ibb.co/gRHYLtS

node:internal/modules/cjs/loader:936
  throw err;
  ^
Error: Cannot find module '/app/server.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

 ,

Danger271
()

Вырубается дедик при дисконнекте от него с основной машины

Форум — General

Есть у меня дедик с оракла always free, на нем стоит Ubuntu 18.04.6 LTS. Подключаюсь с основы через Remmina, но когда закрываю ремину скрипты, которые работают на дедике вырубаются. Можно как-то поддерживать работу серва после дисконнекта?

 ,

Danger271
()

Пытаюсь установить easyocr, но установка килляется

Форум — General

Ubuntu 18.04.6 LTS Хотел на дедике установить easyocr pip3 install easyocr но во время установки либо разрывается соединение с дедом либо пишет ‘Killed’

Скрин с ошибкой https://imgur.com/a/d0sEFTo

 ,

Danger271
()

Couldn't find a valid ICU package installed on the system.

Форум — General

https://ton.org/docs/#/compile?id=func Действовал по инструкции, вылезла ошибка

func -v

FailFast: Couldn’t find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

at System.Environment.FailFast(System.String) at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode() at System.Globalization.GlobalizationMode..cctor() at System.Globalization.CultureData.CreateCultureWithInvariantData() at System.Globalization.CultureData.get_Invariant() at System.Globalization.CultureInfo..cctor() at System.StringComparer..cctor() at System.AppDomain.InitializeCompatibilityFlags() at System.AppDomain.Setup(System.Object)

 , ,

Danger271
()

make: *** [Makefile:146: all] Error 2

Форум — General

Делал установку по инструкции https://github.com/ton-defi-org/ton-binaries#linux-ubuntu--debian , но вылезла ошибка

''' [ 38%] Linking CXX static library librocksdb.a [ 38%] Built target rocksdb make: *** [Makefile:146: all] Error 2 '''

Что делать? Спасибо.

 , ,

Danger271
()

Хочу сделать unmake

Форум — Development

Не разобрался в чем была проблема

[ 32%] Linking CXX static library librocksdb.a
[ 32%] Built target rocksdb
make: *** [Makefile:146: all] Error 2

и сделал make install поинструкции https://coral.ise.lehigh.edu/jild13/2016/07/11/hello/ но сделал только хуже, теперь такая ошибка

cmake ..

Add abseil-cpp
-- No CMAKE_CXX_STANDARD set, assuming 11
Add crc32c
Add rocksdb
-- Enabling RTTI in Debug builds only (default)
-- JNI library is disabled
Add ton
-- Found ccache
-- Disabling HTML build for ton_white_paper.tex because the main file is in subdirectory doc
-- Disabling HTML build for ton_vm_description.tex because the main file is in subdirectory doc
-- Disabling HTML build for ton_blockchain_description.tex because the main file is in subdirectory doc
-- Disabling HTML build for fift_basic_description.tex because the main file is in subdirectory doc
-- Disabling HTML build for catchain_consensus_description.tex because the main file is in subdirectory doc
-- Found ZLIB: /usr/include /usr/lib/x86_64-linux-gnu/libz.so
-- Found Readline: /usr/include /usr/lib/x86_64-linux-gnu/libreadline.so
CMake Warning (dev) at /usr/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (mhd) does
  not match the name of the calling package (MHD).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  CMake/FindMHD.cmake:37 (find_package_handle_standard_args)
  blockchain-explorer/CMakeLists.txt:4 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
CMake Error at rldp2/CMakeLists.txt:54 (target_link_libraries):
  Target "rldp2" links to:

    GSL::gsl

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

make uninstall тут нет, надо лезть в мейк-файлы, но я чайник и не понимаю что там и куда смотреть.

Перемещено hobbit из general

 ,

Danger271
()

RSS подписка на новые темы