当前位置: 首页 > news >正文

网站新手引导怎么做智库建设网站

网站新手引导怎么做,智库建设网站,如何做好网络销售技巧,电子商务网站开发步骤Ubuntu focal是20.04 #xff0c;jammy版本是22.04#xff0c;本次的目的就是将FreeBSD jail子系统里的Ubuntu 从20.04升级到22.04 。这个focal 子系统是通过cbsd克隆得到的。使用CBSD克隆复制Ubuntu jail子系统环境-CSDN博客 do-release-upgrade升级没成功#xff0c;用de…Ubuntu focal是20.04 jammy版本是22.04本次的目的就是将FreeBSD jail子系统里的Ubuntu 从20.04升级到22.04 。这个focal 子系统是通过cbsd克隆得到的。使用CBSD克隆复制Ubuntu jail子系统环境-CSDN博客 do-release-upgrade升级没成功用debootstrap重装升级成功  说明有三个系统FreeBSD宿主机FreeBSD jail子系统 Ubuntu jail 子系统 安装好后可以从宿主机进入FreeBSD或Ubuntu jail子系统。在FreeBSD jail子系统里可以安装多个Ubuntu jail子系统并进入该子系统。 Ubuntu jail子系统里升级focal到jammy 使用do-release-upgrade升级失败 参考Install Ubuntu 22.04 Jammy in FreeBSD Jail | The FreeBSD Forums 在FreeBSD宿主机进入Ubuntu jail 子系统使用命令 jexec focal_to_jammy chroot /compat/ubuntu /bin/bash子系统是以前克隆的focal版本依次执行升级命令  apt install update-manager-core do-release-upgrade -d 没升级成功。 用-d选项的话没有错误信息去掉-d选项有报错信息见后面调试部分。最终没有用这种方法升级成功。 使用debootstrap升级 使用cbsd jlogin focal_to_jammy 进入FreeBSD jail子系统这时候是处于FreeBSD系统下有pkg指令所以 先pkg安装debootstrap pkg install debootstrap 执行debootstrap 下载jammy debootstrap jammy /compat/jammy 这样FreeBSD jail子系统里的操作就结束了后面就是进入jammy jail子系统进行操作了。 进入jammy jail子系统 从FreeBSD jail子系统执行chroot进入jammy子系统 focal_to_jammy:/root[9:37] # chroot /compat/jammy/ /bin/bash groups: cannot find name for group ID 0 groups: cannot find name for group ID 5 I have no name!focal_to_jammy:/# 如果顺利到了这一步就可以结束了但是 发现这个jammy子系统里又没有apt 怎么老碰到这个问题   debootstrap安装jammy时的输出有apt这个包啊 I: Retrieving apt 2.4.5 I: Validating apt 2.4.5   I: Extracting base-files... I: Extracting base-passwd... I: Extracting bash... 发现确实没有解开apt的包 第二次使用--includeapt选项 debootstrap --includeapt jammy /compat/jammy I: Validating adduser 3.118ubuntu5 I: Validating apt 2.4.5 I: Validating apt-utils 2.4.5   还是没有Extracting解开apt 包。话说debootstrap就这么节俭吗 连个apt包都不给 还是说只有FreeBSD下的这个debootstrap不给  看看jammy里的/usr/bin 目录里面就是没有apt jammy jail子系统里手工安装apt 以前手工安装apt会碰到依赖库的问题操作很繁琐这回找到了一个最方便的方法 dpkg --force-depends -Ei /var/cache/apt/archives/*.deb jammy jail子系统里所有的deb包放在/var/cache/apt/archives目录 只要使用这一条命令就能装好apt包使用命令 dpkg --force-depends -Ei /var/cache/apt/archives/*.deb 过程中问到键盘设置啥的 还有pam的配置改变要不要覆盖 One or more of the files                                                  │   │ /etc/pam.d/common-{auth,account,password,session} have been locally       │   │ modified.  Please indicate whether these local changes should be          │   │ overridden using the system-provided configuration.  If you decline this  │   │ option, you will need to manage your systems authentication              │   │ configuration by hand.                                                    │   │                                                                           │   │ Override local changes to /etc/pam.d/common-*?                            │   │                                                                           │   │                    Yes                       No       因为是新系统本地没啥所以选择了Yes覆盖 后面还有设置时区shanghai 等 安装完成后终于有了APT 但是刚开始使用apt会报错 apt update 报错问题解决 apt update Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB] 0% [Working]/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease   gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Reading package lists... Done W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed E: The repository http://archive.ubuntu.com/ubuntu jammy InRelease is not signed. N: Updating from such a repository cant be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  看里面讲到 /dev/null: Permission denied就给它666权限 执行chmod 666 /dev/null   将/dev/null设为666  chmod 666 /dev/null 然后update 搞定但是upgrade报错 apt upgrade Reading package lists... Done Building dependency tree... Done You might want to run apt --fix-broken install to correct these. The following packages have unmet dependencies:  dash : Depends: dpkg ( 1.19.1) but it is not installed  grep : Depends: dpkg ( 1.15.4) but it is not installed or                  install-info but it is not installed  gzip : Depends: dpkg ( 1.15.4) but it is not installed or                  install-info but it is not installed  perl-base : PreDepends: dpkg ( 1.17.17) but it is not installed  python3-minimal : Depends: dpkg ( 1.13.20) but it is not installed  readline-common : Depends: dpkg ( 1.15.4) but it is not installed or                             install-info but it is not installed E: Unmet dependencies. Try apt --fix-broken install with no packages (or specify a solution). 尝试apt --fix-broken install修复apt upgrade报错问题 按照报错提示输入 apt --fix-broken install 修复完成apt install wget 成功 现在看看版本 lsb_release -a lsb_release -a No LSB modules are available. Distributor ID:    Ubuntu Description:    Ubuntu 22.04 LTS Release:    22.04 Codename:    jammy 成功升级到jammy版本 总结 本来想用下面两条执行将focal升级到jammy但是没有成功。 apt install update-manager-core ​ do-release-upgrade -d 最终还是使用了debootstrap 老办法升级成功。 debootstrap安装jammy ​pkg install debootstrapdebootstrap jammy /compat/jammychroot /compat/jammy/ /bin/bash chmod 666 /dev/nulldpkg --force-depends -Ei /var/cache/apt/archives/*.debapt updateapt --fix-broken installapt upgrade# 看版本lsb_release -a 调试 do-release-upgrade -d提示set Promptnorma do-release-upgrade -d Checking for a new Ubuntu release There is no development version of an LTS available. To upgrade to the latest non-LTS development release  set Promptnormal in /etc/update-manager/release-upgrades. 在/etc/update-manager/release-upgrades文件里将Promptlts修改成Promptnormal 结果执行后没什么反应 rootfocal_to_jammy:/# do-release-upgrade -d Checking for a new Ubuntu release Upgrades to the development release are only available from the latest supported release.将do-release-upgrade -d的-d去掉后提示 do-release-upgrade Checking for a new Ubuntu release Get:1 Upgrade tool signature [833 B] Get:2 Upgrade tool [1270 kB] Fetched 1271 kB in 0s (0 B/s) authenticate jammy.tar.gz against jammy.tar.gz.gpg extracting jammy.tar.gzReading cacheChecking package managerA fatal error occurred Please report this as a bug and include the files /var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in your report. The upgrade has aborted. Your original sources.list was saved in /etc/apt/sources.list.distUpgrade. Traceback (most recent call last): File /tmp/ubuntu-release-upgrader-fdy6hyrf/jammy, line 8, in module sys.exit(main()) File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeMain.py, line 241, in main if app.run(): File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeController.py, line 2042, in run return self.fullUpgrade() File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeController.py, line 1807, in fullUpgrade if not self.prepare(): File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeController.py, line 414, in prepare self._sshMagic() File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/DistUpgradeController.py, line 273, in _sshMagic is_child_of_process_name(sshd)): File /tmp/ubuntu-release-upgrader-fdy6hyrf/DistUpgrade/utils.py, line 118, in is_child_of_process_name with open(stat_file) as stat_f: FileNotFoundError: [Errno 2] No such file or directory: /proc/35020/stat 发现source.list文件只有一行不知道是否这个原因 /etc/apt# cat sources.list deb http://archive.ubuntu.com/ubuntu focal main 添加了清华源问题依旧。查看报错发现/proc下没有东西且ps报错 在ps -aux的时候报错Error, do this: mount -t proc proc /proc ps -aux Error, do this: mount -t proc proc /proc 按照提示mount -t proc proc /proc  结果报错 mount -t proc proc /proc mount: /proc: permission denied. rootfocal_to_jammy:/# mount mount: failed to read mtab: No such file or directory rootfocal_to_jammy:/# df df: cannot read table of mounted file systems: No such file or directory 在/etc/fstab里加上配置 devfs      /compat/linux/dev      devfs      rw,late                    0  0 tmpfs      /compat/linux/dev/shm  tmpfs      rw,late,size1g,mode1777  0  0 fdescfs    /compat/linux/dev/fd   fdescfs    rw,late,linrdlnk           0  0 linprocfs  /compat/linux/proc     linprocfs  rw,late                    0  0 linsysfs   /compat/linux/sys      linsysfs   rw,late                    0  0 问题依旧。 这样在FreeBSD的jail里想要focal升级到jammy Ubuntu的实验失败告终。
http://www.w-s-a.com/news/138336/

相关文章:

  • 校园网站建设管理工作制度大网站开发费用
  • 做logo赚钱的网站分类网站 模板
  • 网站建设完成报告织梦网站怎么做备份
  • 邯郸市城乡建设管理局网站vimwiki wordpress
  • 如何修改wordpress站名如何制作公司网站
  • 宁波网站建设与推广方案网站有了备案号之后能做什么
  • 汕头手机端建站模板pinterest app下载
  • 网站主机免费宁波网站建设优化诊断
  • 吧网站做软件的软件下载简单的ui界面制作
  • 陕西网站制作公司网页制作与设计代码
  • 做网站行情郑州微信网站开发
  • 河间网站建设制作null wordpress theme
  • h5网站制作网站开发网站建设文翻译工作
  • 网站建设 税种秦皇岛哪有网站优化公司
  • 专业开发网站设计找人做网页需要多少钱
  • 手机购物网站 建站网站建设网站制作网站设计
  • 基于iview的网站开发模板小程序制作需要什么语言
  • 精美网站设计保定建行网站首页登录
  • 网站建设常见问题做网站保存什么格式最好
  • 营销型网站建设与网页设计网站建设 amp 找VX cp5173
  • 新网站该如何做网站优化呢儿童手工
  • 湖北现代城市建设集团网站搜索引擎优化的作用
  • 上海做网站吧开一家软件开发公司需要什么
  • 阿里巴巴网站建设改图片建设厅官方网站河南
  • 邓砚谷电子商务网站建设镇江网
  • 网站空间支持什么程序工作服款式
  • 网站单页品牌网站建设 蝌蚪5小
  • 怎么做外贸网站需注意哪些做电脑系统的网站
  • 网站建设介绍推广用语河南网站优化外包服务
  • 课程网站模板贵州省城乡与建设厅网站